7. Preprocessing Your 4GL Code : Preprocessor : The #ifdef – #endif Statement
 
Share this page                  
The #ifdef – #endif Statement
The #ifdef statement can be used to test whether a name has been defined as a macro variable by #define. The syntax for this statement is:
#ifdef $variable
...
#else
...
#endif
The #ifdef statement is TRUE when the macro variable has been defined.