Compare Values
Last updated
Last updated
The Compare Values action in the Avo Assure is found under the @Generic Element is used to check if the two values in the input column are the same or not and save it in the output variable.
Input: <Value1>;<Value2>
Value: The input value can accept special characters, numbers, and string.
Output: <Display Variable>(Optional);<Display Variable>(Optional)
When the user is testing an e-commerce platform where a user needs to confirm their email address during registration. The form has two fields: one for entering the email and another for re-entering it to confirm.
Input: In input values user supposed to give input as below:
johndoe@gmail.com;johndoe@gmail.com.
Expected Result: It should check if the two email values in the input fields should be same.
If the values match, the result is saved as ‘True’ in the output variable.
If they don’t match, it’s saved as ‘False’ in the output variable.
Output: The result of Compare Values action is stored in the {result} output variable as “True” which can be utilized for display or other purposes.