Compare Values

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.

Syntax

Input Value: <Value1>;<Value2>;<lowercase(True/true)>(optional)

Argument
Description

<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:

Argument
Description

<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

String
Input Value (syntax)
Result

Text Strings

Database;Database;ture

True

Numeric Strings

123;153

False

Alphanumeric strings

ID8765;ID8565

False

Last updated

Was this helpful?