Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

QuakeC Loops and Conditions

From Quake Wiki

Revision as of 18:32, 7 May 2008 by ShoTro (talk | contribs) (New page: === Loops and conditions === == Conditional construct == if( expression ) { statements } else { statements } == Loop construct == while( exp...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Loops and conditions

Conditional construct

   if( expression )
   {
     statements
   }
   else
   {
     statements
   }


Loop construct

   while( expression )
   {
     statements
   }

or

   do
   { 
     statements
   }while( expression )