Switching Between Two Pages Using a Single Switch

You can use variables to switch between the pages of your macro page.

Prerequisite

  • You have created a Stack element that contains two groups, one for each page.

  • You have added a Variables folder to your macro page.

Procedure

  1. In the GUI Tree, right-click the Variables folder and select Create > Integer.
  2. In the Properties section, name it pages.
  3. Set Minimum to 0 and Maximum to 1.
  4. Add an on/off switch to the macro page.
  5. For both the switch and the stack, set Value to @pages.

    This connects the two values.

Result

You can now switch between the two pages using the on/off switch.