Else
This action in Avo Assure is available under the @Generic element, and it instructs the Avo Assure client to execute an alternative action, after checking the condition, if the condition gets false, then the 'Else' part will be executed.
Syntax
Input: N/A
Output:<Dynamic Variable>(Optional);<Dynamic Variable> (Optional)

Use case/Example

Scenario: Exam Score Evaluation
In this scenario, users are testing an educational application that evaluates student scores based on their performance in an exam. The passing criteria are set at 35%, If students scoring 35% or higher that it then student will pass, else student will get fail due to the mark is less than 35%.
In this Example, the user added the condition to check whether the student is failed or passed.
Example explained below:
If marks are greater than or equal to 35
then it will execute ‘If’ block
Else it will execute the ‘Else’ block.
Input
In this scenario, input marks = 33.
Marks=33
Expected Result
It needs to execute else part to execute as result "Fail,” which is stored in fail variable.
Output
Else part will be executed as output ‘fail’.
Last updated
Was this helpful?