rc.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 (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
 
                   The Resource Compiler #else Directive
 
#else
 
The #else directive marks an optional clause of a conditional-compilation
block defined by a #ifdef, #ifndef, or #if directive. The #else directive
must be the last directive before the #endif directive.
 
This directive has no arguments.
 
Example
 
This example compiles the second BITMAP statement only if the name "DEBUG"
is not defined.
 
    #ifdef DEBUG
        BITMAP 1 errbox.bmp
    #else
        BITMAP 1 userbox.bmp
    #endif
 
See Also
 
#elif, #endif, #if, #ifdef, #ifndef