#ENDIF

The #ENDIF compiler command identifies the end of an IF condition. This command is used in conjunction with the #IF and #ELSE commands.

If the #IF condition is true, the statements following the #IF command (prior to an #ELSE command) are executed. If the condition is false, the statements following the #ELSE command and prior to the #ENDIF command are executed.

Syntax

#ENDIF

Parameters

None

When Became Available

Profile v6.3

Example

#IF CUVAR.%mcp

set X = 5

#ELSE

set X = 6

#ENDIF