Switch: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
The '''switch''' statement in con is similar to that in C. | The '''switch''' statement in con is similar to that in C. | ||
switch <gamevar> | switch <gamevar> | ||
case <constant> | |||
<do something> | |||
[[break]] | |||
case <constant> | |||
<do something> | |||
break | |||
endswitch | endswitch |
Revision as of 16:34, 30 August 2005
The switch statement in con is similar to that in C.
switch <gamevar> case <constant> <do something> break case <constant> <do something> break endswitch