Switch: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Plugwash (talk | contribs)
No edit summary
No edit summary
Line 9: Line 9:
       break
       break
   endswitch
   endswitch
[[Category:EDuke commands]]

Revision as of 17:47, 24 September 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