Compare Values

The Compare Values action in Avo Assure, found under @Generic Element, is used to check whether the two values in the Input Value column are the same or not, and stores the comparison value in the dynamic variable.

Syntax

Input Value: <Value1>;<Value2>

Argument
Description

<Value1>;<Value2> (Required)

The input value can accept special characters, numbers, and string.

Output Value

Argument
Description

<Dynamic Variable>(Optional)<Dynamic Variable>(Optional)

This variable stores the status as true or false

Example

Comparison of Actual and Expected Values Using the Compare Values Action

The Compare Values action takes the actual balance (5000) from the Input Value column and the expected balance (5000) as input, then checks if they are the same. The compared value is stored in the {Compare Value} variable, whereas the operation status is stored in the {Status} variable:

  • True – if the values match

  • False – if the values do not match

String
Input Value (syntax)
Result

Text Strings

Database;Database;ture

Databas

Numeric Strings

123;123

123

Alphanumeric strings

ID8765;ID8765

ID87654

Last updated

Was this helpful?