SWITCHVAR allows the user to toggle a switch on or off. txt contains the name of the Constant or Game Input for gaming. A | separates the name from prompt information. acc contains the off/on values for the switch (by default off is 0 and on 1). com appears on the screen.
SWITCHVAR,"PREREQ REQ[TASK1,TASK2]",47,20,15,0,L,,Task 2
If the variable name you specify is not in the model SWITCHVAR will disable the check box and fill it with gray.