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.
ELSE
                                             Up Contents Index Back
─────ELSE───────────────────────────────────────────────────────────────────
 
     Action
 
     Marks the beginning of an ELSE block.
 
     Syntax
 
     ELSE
 
     Remarks
 
     An ELSE block consists of any executable statements between the
     ELSE statement and the next END IF statement at the same IF
     level. The matching END IF statement must appear before any ELSE
     or ELSE IF statements of the same IF level.
 
     Control may not be transferred into an ELSE block from outside
     that block.
 
     See Also: ELSE IF
               END IF
               IF THEN ELSE (Block IF)
 
     Example
 
           CHARACTER c
           .
           .
           .
           READ (*, '(A)') C
           IF (c .EQ. 'A') THEN
             CALL Asub
           ELSE
              CALL Other
           END IF
           .
           .
           .
                                    -♦-