Add conditional steps
Conditions such as If and If/Else increase the control over test runs, making your script more resilient and robust. You can include conditions in your script.
To add conditional steps:
Add a condition in one of the following ways:
- Type If in an empty step and press Enter to form an If condition block. To form an If/Else condition block, type Else in another empty step.
- Hover over the step number of an empty step line, click the button, and select Conditions > If / If-Else.
Edit steps in an If or If/Else condition block. See Step 3 and Step 4 in Manually add and edit steps.
To use an output parameter to store the condition result, click Set condition result into output parameter in the step editing pane and select the output parameter. The result can be True or False.