Inhalt

Index

THEN

THEN is part of an IF...THEN...ELSE...ENDIF construction. IF executes the following SmartPart Script commands depending on a condition.

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).



Allplan

(C) ALLPLAN GmbH

Privacy policy