Programmer Guide/Command Reference/IF: Difference between revisions

From STX Wiki
Jump to navigationJump to search
(initial import)
 
m (1 revision: Initial import)
(No difference)

Revision as of 18:31, 18 November 2010

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