If
This action of Avo Assure available under the @Generic Element and the functionality of this action in Avo Assure is to check if the condition is satisfied or not and save the result in the dynamic variable.
Syntax
Input Value: (<operand1>;<operator>;<operand2>)
<operand1> (Required)
Specify the first value to compare. This can be a static value or a dynamic variable. Support input format: 1. Number, 2. String,
<operator> (Required)
The comparison operator. Supported operators include:
>, <, ==, >=, <=,!=, contains, not contains along with the logical operators AND, OR, NOT
<operand2> (Required)
Specify the second value to compare against operand1.This can be a static value or a dynamic variable. Support input format: 1. Number, 2. String,
Note: With this new enhancement, If/Else will support string operators like contains, not contains, length, replace, find etc. This will make extracting and filtering data from tables easier. While using an If action Test Step, the user must close it with the EndIf Action
Output Value:
N/A
Not Applicable
Example
Evaluates whether the value stored in a variable meets a specific condition.
The If action takes the expression from the Input Value column (e.g., {Salary};>=;20000) and checks if the value 90000 stored in the {Salary} variable is greater than or equal to 20000. If the condition is true, the actions inside the If block are executed. If false, the flow proceeds to the Else block.

Last updated
Was this helpful?