Preprocessor conditional directive
Syntax
#ifdef A
' Conditionally included statements if A is defined
#elseifdef B
' Conditionally included statements if A is not defined and B is defined
#else
' Conditionally included statements if both A and B are not defined
#endif
Description
#elseifdef can be added to an
#if block to provide an additional condition.
#elseifdef symbol is equivalent to
#elseif defined (symbol)
Example
#define B
#ifdef A
Print "A is defined"
#elseifdef B
Print "A is not defined and B is defined"
#else
Print "both A and B are not defined"
#endif
Version
Differences from QB
See also