Onetastic Macro Documentation >
>
case
case Statement
Description
Compares the given value to the value of the parent switch statement and executes a set of if they are equal. If a break statement is not found inside a case statement, then execution continues into the next case or default statement, if any exists.
Syntax
case expression:
Statements...
Examples
switch ($x)
case 0:
break
case 1:
case 2:
case 3:
break
case 4:
break
default:
See Also
|