Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 954 Bytes

-else.md

File metadata and controls

44 lines (28 loc) · 954 Bytes
title description ms.assetid ms.topic ms.date
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.
982466d9-ae77-4e1c-89f3-511335165da7
article
05/31/2018

#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.

#else

This directive has no parameters.

Example

This example compiles the second BITMAP statement only if DEBUG is not defined:

#ifdef DEBUG
    BITMAP 1 errbox.bmp
#else
    BITMAP 1 userbox.bmp
#endif

Related topics

Preprocessor Directives