A data declaration in a structure, defined at any level and visible at that moment in processing

An enumeration

source_1

(optional) One or more lines of source code.

source_2

(optional) One or more lines of source code.

Discussion

The .IFNDEF compilation control directive indicates that the statements that follow are to be compiled if the specified data element has not previously been defined.

The source_1 lines of code are compiled only if the specified variable or identifier is not defined prior to the .IFNDEF directive. If the .ELSE directive is present, the source_2 lines of code are compiled only if the specified variable or identifier is defined prior to the .IFDEF directive.

You can use one or more of the .ELSE, .IFT, .IFF, and .IFTF directives within an .IFNDEF conditional block. These conditional compilation control directives can be nested.

The .ENDC directive must always close an .IFNDEF conditional block.

Examples

The following example shows a simple conditional compilation control operation.