Example of a SWITCH LIST Declaration

The following example declares NUMVARIABLES to be a switch list identifier and associates four list designators with it. NUMVARIABLES[0] evaluates to the list NOVARS, NUMVARIABLES[1] evaluates to ONEVAR, and so on.

SWITCH LIST NUMVARIABLES := NOVARS,   % 0
                            ONEVAR,   % 1
                            TWOVARS,  % 2
                            THREEVARS % 3