IF
From STX Wiki
Jump to navigationJump to search
There are two forms of the IF
syntax. The first allows the conditional execution of one command:
IF condition command
The second allows conditional execution of multiple command within a block:
IFNOT condition command
Conditional execution of a command. For more information on conditions see condition.
IF condition THEN ... ELSE IF condition THEN ... ELSE IFNOT condition THEN ... ELSE ... END
Conditional execution of command blocks. Only the IF
clause is necessary, all others are optional. Both command forms IF
and IFNOT
can be used. Empty clauses (without commands) are allowed. The last clause must be closed with END
. For more information on conditions see condition.