SEC35.hss 602 B

123456789101112131415161718
  1. [Main]
  2. Title=#else
  3. [Top]
  4. The <CODE>#else</CODE> directive can be added to a conditional to provide
  5. alternative text to be used if the condition fails. This is what it
  6. looks like:
  7. <PRE>#if <I>expression</I>
  8. <I>text-if-true</I>
  9. #else /* Not <I>expression</I> */
  10. <I>text-if-false</I>
  11. #endif /* Not <I>expression</I> */
  12. </PRE>
  13. If <I>expression</I> is nonzero, the <I>text-if-true</I> is included and
  14. the <I>text-if-false</I> is skipped. If <I>expression</I> is zero, the
  15. opposite happens.
  16. <BR><BR>
  17. You can use <CODE>#else</CODE> with <CODE>#ifdef</CODE> and <CODE>#ifndef</CODE>, too.