REFERENCE
if

Executes code conditionally.

Syntax

if
   ... ;

      or

if
{
    ...
}

Remarks

if is used like in C.


Example

if ( 1 == x )
    print ( "x is 1" );

else if ( 2 == x )
    print ( "x is 2" );

else
    print ( "x is not 1 or 2" );


Related topics

else


This page was last revised on May 7, 2009
    Copyright © 2009 HotkeyNet Software