GNU Info

Info Node: (cpp-295.info)#else Directive

(cpp-295.info)#else Directive


Next: #elif Directive Prev: #if Directive Up: Conditional Syntax
Enter node , (file) or (file)node

The `#else' Directive
.....................

   The `#else' directive can be added to a conditional to provide
alternative text to be used if the condition is false.  This is what it
looks like:

     #if EXPRESSION
     TEXT-IF-TRUE
     #else /* Not EXPRESSION */
     TEXT-IF-FALSE
     #endif /* Not EXPRESSION */

   If EXPRESSION is nonzero, and thus the TEXT-IF-TRUE is active, then
`#else' acts like a failing conditional and the TEXT-IF-FALSE is
ignored.  Contrariwise, if the `#if' conditional fails, the
TEXT-IF-FALSE is considered included.


automatically generated by info2www version 1.2.2.9