PickBASIC / FlashBASIC
$IFDEF directive
.mdThe $IFDEF directive tests for the definition of an identifier in the compiler symbol table.
Syntax
$IFDEF identifier statements {$ELSE statements} $ENDIF
Parameter(s)
| identifier |
Specifies the symbol to be tested. If the symbol is defined in the symbol table (by $DEFINE), the statements following the identifier are executed. If the symbol is not defined in the symbol table (by $DEFINE), the statements in the $ELSE clause are executed if specified. The $ENDIF directive is required. |
| $ELSE |
(Optional) If the symbol is not defined, the statements in the $ELSE clause are executed if specified. |
| $ENDIF | (Required) The $ENDIF directive marks the end of the $IFDEF directive. |