Else
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
Note: Without If action we cannot use the Else action.
Input: N/A
Output:
<Dynamic Variable>(Optional);<Dynamic Variable> (Optional)
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.
In this scenario, input marks = 33.
Marks=33
It needs to execute else part to execute as result "Fail,” which is stored in fail variable.
Else part will be executed as output ‘fail’.