Switch

From EDukeWiki
Revision as of 16:32, 30 August 2005 by Plugwash (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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