You can control the flow of execution of tests using conditional constructs. A conditional construct begins with an If_Then action and ends with an End_If action. You can optionally include an Else action.
Conditional constructs can be nested.
These are the actions associated with the Conditional step type.
The first step in a conditional contstruct. The system evaluates the logical expression in the Recognition field of the If_Then step. If the expression evaluates to True, the system executes the steps between the If_Then step and the End_If step or the Else step, if it exists. If the expression evaluates to False, the system jumps to the Else step, if it exists, or to the End_If step if there is no Else, and continues execution.
If_Then supports these logical operators:
<>, >=, <=, >, <, =
You can use the AND and OR logical operators to specify multiple conditions.
(Optional) If the logical expression evaluates to False, the system executes the steps between the Else step and the End_If step.
The close statement of the If_Then construct.
This example shows the use of multiple conditions and nested conditionals:
Image: Example of the If_Then conditional construct
This example illustrates the use of multiple conditions and nested conditionals.