switch

Command: switch


Synopsis
mark proc1...procn switch-> -
File
sli/slicontrol.h
Parameters

proc1...procn: executable procedure tokens.
Author
Gewaltig
Description

switch executes proc1 ... procn and removes the mark. If any executed
proc containes an exit command switch will remove the other procs without
execution. switch is used together with case.
FirstVersion
??

Examples


mark
false {1 == exit} case
false {2 == exit} case
true {3 == exit} case
false {4 == exit} case
switch
--> 3

mark {1 ==} {2 ==} switch --> 1 2