Switching Panel Content with flagLogic
Flaglogic is conditional code that controls the display of panel or macro content. It uses the Flag macro to set or change a value that can then be used by other macros, like Panel Show and Panel Hide. See Working with Flags for a detailed explanation of flagLogic.
An example that detects Login page and shows related content:
The flagLogic Panel
The Set Flag macro creates the login flag and gives it a default value of false.
The Main Panel
The Panel Import macro will use the parameterflag=login
to show the login panel, containing content limited to the login and logout pages.