IF ... THEN ... ELSE ... END IF
System Testing Supervisor Script Language.
Purpose
The IF ... END IF statement allows you to define a conditional behavior based on the result of an expression.
Syntax
IF <expression> THEN
ELSE
END IF
<expression> is a Boolean expression. See Expressions.
Description
IF defines the Boolean expression.
Instructions following the THEN keyword are executed if the expression is true.
Instructions following ELSE are executed if the expression is false.
END IF marks the end of the of the IF statement.
Example
HOST machine IS 193.6.2.1
DO prepro IS machine:preprocessing.exe
IF ( STATUS ( prepro ) == 0 ) THEN
PRINTLN "preprocessing OK"
ELSE
PRINTLN "preprocessing FAILED"
EXIT
END IF
Related Topics