Else
This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to execute the alternative condition steps when the specified If condition evaluates to false. The Else part is executed, and the result is stored in the given dynamic variable for further use during test execution.
Syntax
Input Value: N/A
N/A
Not Applicable
Output Value: <Dynamic Variable>(Optional);<Dynamic Variable> (Optional)
<Dynamic Variable>(Optional);<Dynamic Variable> (Optional)
Both dynamic variable stores the status as True or Fales.
Example: Executing Alternative Steps When the If Condition Fails
In this example, we explain how the Else action runs when the condition defined in the previous If action is false.
Action: Else
Input Value: N/A
This action does not require any input value. It defines an alternate set of actions that execute only when the If condition fails.
Output Value: {Status}
The execution status of this action is stored in the {Status} dynamic variable, with the following possible values:
True: If the Else part executes successfully.
False: If the Else part does not execute because the If condition is fulfilled.
Logical Explanation: The Else action triggers only when the condition defined in the corresponding If action evaluates to false (for example, when the person is not eligible for a loan). When this condition is false, the execution flow enters the Else part and performs the steps defined within it. In this example, the Display Variable Value action displays the value of the {Not Eligible} variable (Not Eligible for Loan). The execution then continues until the EndIf action is reached. Finally, the execution status (True) is stored in the {Status} variable.

Last updated
Was this helpful?