EndIf
Last updated
Was this helpful?
Last updated
Was this helpful?
This action in Avo Assure is available under the @Generic element. It instructs the Avo Assure client to close the If condition statement after executing the condition, without EndIf we cannot execute the If condition.
Input: N/A
Output: N/A
In this scenario, users are testing a web application that checks if a user is eligible to vote. The criteria for voting eligibility are that the user’s age must be 18 or more than it.
In the above example,
If the age is greater than or equal 18, then it will execute “If” block else it will execute Else block after that user need to close EndIf. If user does not close the endif then user will face dangling node error in Avo Assure Client.
User age is assigned as 23 years old.
Age=23
Result will need to showcase as a “person is eligible for vote,” which is stored in the “Eligible” variable.
The output must be ‘Person is eligible to vote.’