Compare Values
Last updated
Was this helpful?
Last updated
Was this helpful?
The Compare Value action in the Avo Assure is found under the String Operations in @Generic Element, it is used to compare two strings without case sensitivity. It treats both strings as if they are in the same case, and story the result in Dynamic variable.
Input Value: <Value1>;<Value2>;<lowercase(True/true)>(optional)
<Value1>;<Value2> (Required)
The input value can accept special characters, numbers, and string. 1. The first value you want to compare. 2. The second value you want to compare.
<lowercase(True/true)> (optional)
Add this only if you want to ignore uppercase and lowercase differences.
Output Value:
<Dynamic Variable>(Optional)<Dynamic Variable>(Optional)
This variable stores the status as true or false
Example
Compares two values and saves True or False based on match.
The Compare Value action takes two values from the Input Value column (e.g., Apple;apple;true) and compares them. If the optional true flag is set, the comparison is case-insensitive. The result of the comparison is stored in the {ComparisonResult} variable, with the following possible values: True – if the values match. False – if the values do not match or an error occurs