ELSE is part of an IF...THEN...ELSE...ENDIF construction. ELSE extends an IF statement to execute a statement in case the expression in the IF statement evaluates to FALSE.
Syntax
IF condition THEN command
IF condition THEN
command1
command2
ELSE
ENDIF
Parameters
condition: if condition=true (¹0) all commands after THEN are executed. Otherwise the commands after ELSE are executed. If ELSE is absent, the commands after ENDIF are executed.
command: any SmartPart Script command
Remarks
If the command after THEN is GOTO or GOSUB, you can omit the THEN statement and shorten to IF condition GOTO label.
If there is only 1 command after THEN or ELSE in the same row, you can omit ENDIF.
Usable since script version 1.1 (Allplan 2012-1).
|
(C) ALLPLAN GmbH |
Privacy policy |