#elseif

Test the value of a definition and compile the following code if the result is true.  This is only valid from within an #if, #ifdef, or #ifndef block.

Syntax: #ifdef keyword operator value

keyword

Required. The keyword to check

operator =    or  <>
value The value to test for (This is case sensitive)

Example:

#define mode 2

#if mode=1
  Call mode1()
#endif

#if mode=2
  Call mode2()
#endif

Also See: #define, #undefine, #if, #ifdef, #ifndef, #else, #endif