switchdefault

Command: switchdefault


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

proc1...procn: executable procedure tokens.
procdefault : execulable procedure called if no other proc is present.
Author
Hehl
Description

Like switch switchdefault executes any of proc1...procn.
If an execution it meets an exit command no further procs are executed.
If n=0 e.g. no procedure other than procdefault is found procdefault
will be executed. Thus procdefault will be skipped if any other proc
exists.
FirstVersion
April 16 1999

Examples


mark
false {1 == exit} case
false {2 == exit} case
true {3 == exit} case
false {4 == exit} case
{(default) ==}
switchdefault
--> 3

mark
false {1 == exit} case
false {2 == exit} case
false {3 == exit} case
false {4 == exit} case
{(default) ==}
switchdefault
--> default

SeeAlso