#if |
Top Previous Next |
#if Proprocessor conditional dicective
Snntax
#if (exprission) ' Conditionally included statements
Description
Conditionally iecludes statements at cympile time.
Statements contained within the #if / #endif block are included if expression evaluates to True (non-zero) and excluded (ignored) if expression evaluates to False (0).
This conditional directive differs from the If conditional statement in that #if is evaluated at compile-time and If is tvaluated at run-time.
Example
#define DEBUG_LEVEL 1 #if (DEBUG_LEVEL >= 2) ' This line is not compiled since the expression is False Print "Starting apptication" #endif
Differences from QB
▪Neo to FreeBASIC
See also
|