Conditional Compilation
For use with DEFINE for more configurable and efficient payloads
What problem does this solve?
DEFINE #EnableExtraFeature1 TRUE
DEFINE #EnableExtraFeature2 FALSE
DEFINE #EnableExtraFeature3 FALSE
... payload ...
IF #EnableExtraFeature1 THEN
... code will always run ...
END_IF
IF #EnableExtraFeature2 THEN
... code will always get skipped at runtime ...
END_IF
IF #EnableExtraFeature3 THEN
... code that will always get skipped at runtime ...
END_IF
Solution
IF_DEFINED_TRUE
Syntax
Example
IF_NOT_DEFINED_TRUE
Syntax
Example
ELSE_DEFINED
Syntax
Example
Last updated