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