Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation

The #else Directive Contents|Index|Previous|Next
The #else directive  

The #else directive can be added to a conditional to provide alternative text to be used if the condition is false. The following example shows what it resembles.
    #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. Contrarily, if the #if conditional fails, the text-if-false is considered included.

Top|Contents|Index|Previous|Next

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat