forlang.hlp (Table of Contents; Topic list)
IF (Logical IF)
                                             Up Contents Index Back
─────IF (Logical IF) ───────────────────────────────────────────────────────
 
     Action
 
     Executes statement. Transfers control to the next executable
     statement if <expression> is false.
 
     Syntax
 
     IF (expression) statement
 
     Parameter          Description
 
     expression         A logical expression.
 
     statement          Any executable statement except a CASE, DO,
                        ELSE, ELSE IF, END, END IF, END SELECT,
                        SELECT CASE, block IF, or another logical IF
                        statement.
 
     Example
 
           IF (i .EQ. 0)  j = 2
 
           IF (x .GT. 2.3)  GOTO 100
           .
           .
           .
       100 CONTINUE
                                    -♦-