Switch

From EDukeWiki
Revision as of 23:27, 4 August 2006 by 71.142.216.30 (talk)
Jump to navigation Jump to search

The switch statement in con is similar to that in C.

 switch <gamevar>
   case <constant>
     <do something>
     break
   case <constant>
     <do something>
     break
 endswitch

Caution: Nested switches do not work because of the way the CON compiler compiles them.