Conditional Statement in logic editor allows you to build logic which should be executed based on some condition being satisfied. For example, consider a situation where you need to perform some actions based on existence of a button.
You create conditional statement by selecting "Conditional Statement" option in the menu after clicking the ellipsis icon in the logic editor. You are presented with a free form search bar where you can enter text in natural language, based on what you want to check. Search results will show all the relevant commands for conditional check. Once you select required command, you continue with filling parameter values just like you would, for a regular statement.
This statement allows creating another branch within the main conditional statement. You will select the specific condition by searching for a command just like you would do for the main conditional statement. In a given conditional blocks, you can insert as many else-if branches as required.
Else condition provides a branching in a conditional statement which behaves as a catch-all block. If none of the conditions in the remaining branches of the conditional statement are satisfied, test execution falls into this block. For a given conditional statement, you can only have one else branch.
Exit Action on Condition
In some cases, it may be necessary to abort rest of the logic in the Action and terminate based on a condition being satisfied. To insert an exit-action statement, mouse-over on the condition (if or else-if or else branches) and select action toolbar for "exit action". During the test execution, if the condition in the particular branch is satisfied, Action logic will terminate after executing all the statements in that branch of condition.