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.
$ENDIF
                                             Up Contents Index Back
─────$ENDIF─────────────────────────────────────────────────────────────────
 
     Action
 
     Terminates a $IF block.
 
     Syntax  $ENDIF
 
     Remarks
 
     There must be a matching $ENDIF metacommand for every $IF
     metacommand in a program unit.
 
     Example
 
     $DEFINE  flag
     $DEFINE  testval = 3
     $IF DEFINED (flag)
           WRITE (*, '('' Compiled if all conditions met'')')
     $ENDIF
     .
     .
     .
     $IF (testval .LT. 1) .AND. .NOT. DEFINED (flag)
           WRITE (*, '('' This is compiled if flag .EQ. 3'')')
     $ELSE
           WRITE (*, '('' This is compiled if flag .NE. 3'')')
     $ENDIF
                                    -♦-