Compare Inputs

This is pre-built Action located under the @Generic Element, instructs the Avo Assure to compare the inputs specified in the input Value (.xml and .json content) and save the differences in dynamic variable.

Syntax

Input Value: <Input Text(Original)>;<Input Text(Changed)>;<Selective/All(Optional)>

Argument
Description

<Input Text (Original)>

(Required)

Provide original input you want to compare against.

<Input Text (Changed)> (Required)

The new or expected text value that you want to be compared.

<Selective/All(Optional)> (Optional)

Optional comparison mode: • All → compares the entire text exactly • Selective → compares only specific parts

Output Value:

Argument
Description

<Dynamic Variable> (Required)

This variable holds the result of the content comparison.

<Dynamic Variable> (Optional)

This variable stores the status as true or false

Example

Compare two input texts and highlight differences The Compare Inputs action takes the value from the Input Value column (e.g., {"name":"Alice","age":30,"email":"[email protected]"};{"name":"Alice","age":28,"email":"[email protected]"};all) and compares the original input text with the changed input text. The result of the comparison is stored in the {Comparison} variable, and the action status is saved in the {Status} variable with the following possible values:

  • True – if the inputs are compared successfully

  • False – if the inputs are not compared

Last updated

Was this helpful?