#ELSEIFDEF


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)

Examples:
#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:

Back to Preprocessor
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode