forlang.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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
                                    -♦-