Is there any building block for IF Statements?
Is there any building block for IF Statements?
The building blocks that interact with applications (be it Web, Desktop, or Image & Text) such as Find Web Element, Click UI Element, Find Image, etc. have in-built logic for “If-Then-Else”. There is one input connector and two output connectors in these blocks that describe the IF-ELSE behavior.
For example, you can check if a specific image can be found on screen and if it is found then execution will continue from the Header (Top Green connector will be triggered), but if the image cannot be found, the execution will trigger “Not found” connector.
The same logic applies to other building blocks which are used in Web, Desktop, or Virtual Desktop Case type.
Moreover, we have Compare and Switch blocks which are the equivalents of an IF statement.
For any clarification, please contact our Priority Support.