What is a conditional statement
Conditional Statement in logic editor allows you to build logic which should be executed based on some condition being satisfied. A conditional statement is made up a structure as follows:
If <condition to check>
statements to run on 'if' condition....
Else If <condition to check>
statements to run on 'else -if' condition....
statements to run on all other conditions....
Once you are in an "if" conditional statement, you can type "else if" or "else" to create additional branches of conditional logic. "else" condition is more like a catch-all block where the statements get executed if all of the other branches of verification have failed. If used, "else" block should be the last block after all the "else if" blocks inside an "if" block.
Example conditional block
For example, consider a requirement where you need to click on the sign-in button if it exists. If not, your logic requires to print an error message.
You will start with selecting the statement type (/if) first and then select the condition to check.
Required condition can be checked using one of the command statements from the list.
Here is a snippet on how to build conditional statement (no audio)