#ifdef-#else-#endif Directives

Syntax:

#ifdef <variable_name>
...
[#else]
...
#endif

These directives allow you to conditionally compile parts of your code: Using the #ifdef directive you can test whether a compiler variable with that name has been defined (either predefined or by using #define). Depending on the definition state you then can conditionally compile formula code.

Notes:

  • Variable names used by the compiler directives have nothing to do with local variables or parameters, even if they have the same name!

#ifdef-#else-#endif