If

This action of Avo Assure available under the @Generic element instructs Avo Assure client to check if the condition is satisfied or not. If the condition is satisfied, then it will execute IF part and when the condition is not satisfied then it will execute ELSE part.

Syntax

Input: (<operand1>;<operator>; <operand2>)

  • An operand is the value or data that an operator acts upon. It can be a constant (number, string, etc.)

  • An operator is a mathematical operations or keyword that performs a specific operation on one or more operands.

  • Supported Input Format:

1. Text

2. Static values/ Dynamic variables

3. Supported operators: >, <, ==, >=, <=,!= contains, not contains along with the logical operators AND, OR, NOT

Output: N/A

Example 1

Scenario: loan eligibility check

In a bank application, users want to test a banking application that determines whether a user is eligible for a loan based on their income. The criteria for eligibility are Income must be at least $50,000 more than that.

As per the input value is 75000 and the compare value is 50000, and the operator is greater than or equal to, so in this condition it will check the condition.

If Salary greater than or equal to 50000

if yes, then it executes If block.

Input

The user enters a salary of $75,000

Salary=$75000

Expected Result

It needed to satisfy the condition, and the person will be eligible for a loan.

Output

Output is displayed as person “Eligible for a loan.”

Example 2

In this example, the user wants to check variable {a} is equal to variable {b} and if they are equal then display variable{c} as "a and b are equal"

Last updated

Was this helpful?