DataBasic Reference > Statements and Intrinsic Functions > $IFNDEF Statement

Comment on this topic

Documentation Comments

Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.

Reality V15.0 ()

$IFNDEF Statement (DataBasic) (m618703+ifndef_s.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

$IFNDEF Statement

Controls conditional compilation of source code.

Syntax

$IFNDEF symbol
    statement
    .
    .
    .
{
$ELSE
    statement
    .
    .
    .}

$ENDIF

Syntax Elements

symbol The name of a symbol.

statement Any valid DataBasic statement.

Conditions

When the module is compiled:

Comments

Any number of valid DataBasic statements can be included or excluded following a $IFNDEF or $ELSE.

The $IFNDEF statement (with or without $ELSE) must be terminated with $ENDIF.

See Also

$IFDEF statement, $DEFINE statement, EQUATE statement, $UNDEFINE statement.

Example

$IFNDEF RELEASE
PRINT COUNT, MYVALUE
$ENDIF

If the symbol RELEASE has not been defined, includes code that prints the values of the COUNT and MYVALUE variables; otherwise omits this line.

RealityV15.0Comment on this topic