COMMAND NAME:

        IF

USAGE

        IF ( <condition> ) <stmt>

            or

        IF ( <condition> ) <stmt> ELSE <stmt-alt>

        The IF statement is a simple branching construct.  <Condition> is an
        expression.  If it evaluates to true then <stmt> is executed.  If
        <condition> is false then control passes to the next statement
        unless an ELSE clause is present.  In that case then <stmt-alt> is
        executed.  <Stmt> and <stmt-alt> can be any SCL command or statement
        including a compound statement.
        
EXAMPLE:

                if ( x==100 && y<13.95 )
                {
                    sim 4*c
                    z=19
                }
                else
                    y = 42

        The condition x==100 && y<13.95 is evaluated.  If it is true, then
        execute the compound statement containing a simulate command and an
        assignment statement.  Otherwise, y is set to 42.

SEE ALSO:

        ELSE
