Command Reference 5-79
Example
This example compares the Input Buffer's contents to <<, >>, and =. For example,
if the input contains >>, the script executes the commands following CASE ">>"
until the next CASE or DEFAULT command. Control then passes to ENDSWITCH.
If the input buffer does not match any values, the script executes the commands
following DEFAULT, until it reaches ENDSWITCH.
SWITCH INPUT
CASE "<<"
CALL SCROLLUP
CALL DISPLAYMENU
CASE ">>"
CALL SCROLLDOWN
CALL DISPLAYMENU
CASE "="
CALL SELECTMENUITEM
DEFAULT
BEEP
ENDSWITCH
See Also
IF
WHILE