NMAKE Help (nmake.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..., !ENDIF Directives
                                             Up Contents Index Back
─────NMAKE──────────────────────────────────────────────────────────────────
 
     Syntax:  !IF constantexpression
 
     Processes the statements between !IF and the next !ELSE or !ENDIF
     if <constantexpression> evaluates to a nonzero value.
     See: !ELSE... Directives
          Expressions in Preprocessing
 
     Syntax:  !IFDEF macroname
 
     Processes the statements between !IFDEF and the next !ELSE or
     !ENDIF if <macroname> is defined.
     See: Macros
          Null Macros and Undefined Macros
 
     Syntax:  !IFNDEF macroname
 
     Processes the statements between !IFNDEF and the next !ELSE or
     !ENDIF if <macroname> is not defined.
 
     Syntax:  !ENDIF
 
     Marks the end of an !IF, !IFDEF, or !IFNDEF block. Anything
     following !ENDIF on the same line is ignored.
                                    -♦-