IF

From STX Wiki
< Programmer Guide‎ | Command Reference
Revision as of 18:31, 18 November 2010 by Admin (talk | contribs) (1 revision: Initial import)
Jump to navigationJump to search

IF

There are two forms of the IF syntax. The first allows the conditional execution of one command. The second allows conditional execution of multiple command within a block.

IF condition command

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.

Navigation menu

Personal tools