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 a $ELSE metacommand block.
 
     Syntax  $ELSE
 
     Remarks
 
     If the logical expression in the matching $IF or $ELSEIF
     metacommand evaluates to .FALSE., a $ELSE block is compiled.
 
     A $ELSE block consists of any statements between the $ELSE
     metacommand and the next $ENDIF metacommand at the same $IF level.
     The matching $ENDIF must appear before any $ELSE or $ELSEIF at the
     same $IF level.
 
     Example
 
     $DEFINE flag
 
     $IF DEFINED (flag)
           WRITE (*, '('' This is compiled if flag
          + DEFINED'')')
     $ELSE
           WRITE (*, '('' This is compiled if flag
          + not DEFINED'')')
     $ENDIF
                                    -♦-