Switch: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 8: Line 8:
       <do something>
       <do something>
       break
       break
   endswitch
   [[endswitch]]


[[Category:EDuke commands]]
[[Category:EDuke commands]]

Revision as of 15:42, 18 July 2006

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

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