case - like if, but test a series of conditions.
bool proc case --> proc
-
true {(hello) ==} case --> hello
false {(hello) ==} case --> -
1 0 gt {(1 bigger than 0) ==} case --> 1 bigger than 0
1 0 lt {(0 bigger than 1) ==} case --> -
mark
false {1 == exit} case
false {2 == exit} case
true {3 == exit} case
false {4 == exit} case
switch
--> 3
case tests the bool and pushes proc if true, else does nothing.
bool : condition for case to test
proc : procedure to be executed if case is true
Use exit to make sure that switch is exited.
Gewaltig
/usr/src/packages/BUILD/sli/slicontrol.h