Switch: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:


   switch <gamevar>
   switch <gamevar>
     case <constant>
     case: <constant>
       <do something>
       <do something>
       [[break]]
       [[break]]
     case <constant>
     case: <constant>
       <do something>
       <do something>
       break
       break

Revision as of 22:36, 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