The #ELSE compiler command causes the compiler to evaluate the condition that follows the statement. This command is used in conjunction with the #IF and #ENDIF 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
#ELSE
Parameters
None
When Became Available
Profile v6.3
Example
#IF CUVAR.%mcp
set X = 5
#ELSE
set X = 6
#ENDIF