Switch: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
switch <gamevar> | switch <gamevar> | ||
case | case <constant> | ||
<do something> | <do something> | ||
[[break]] | [[break]] | ||
case | case <constant> | ||
<do something> | <do something> | ||
break | break | ||
[[endswitch]] | [[endswitch]] | ||
Caution: ''Nested switches do not work because of the way the CON compiler compiles them''. | |||
[[Category:EDuke commands]] | [[Category:EDuke commands]] |