Onetastic Macro Documentation >
>
switch
switch Statement
Description
Evaluates an expression and compares it to the value in each of the subsequent case statements to execute a different set of based on which value it equals to.
Syntax
switch (expression)
Statements...
Examples
switch ($x)
case 0:
break
case 1:
case 2:
case 3:
break
case 4:
break
default:
See Also
|