Flow Control Actions
Actions in the Flow Control group — branching, assertions, pauses and early exit. Loops have their own sub-group, Loop.
Condition
Branches the scenario. Inserting it automatically creates the True and False sub-sections; put the actions for each outcome inside them.
| Parameter | Description |
|---|---|
| Condition | Expression whose truth value selects the branch. Click VAR to insert variables. |
Assert
Verifies that a condition holds. If it does not, the scenario stops with your error message.
| Parameter | Description |
|---|---|
| Condition | Logical expression that must evaluate to true. |
| Message | Text logged and raised when the assertion fails. |
Use Assert as a checkpoint after a critical step — for example that the invoice total the robot read is greater than zero. Failing early with a clear message is much easier to debug than a wrong value quietly flowing through the rest of the run.
Sleep
Pauses the scenario for a fixed time.
| Parameter | Description |
|---|---|
| Timeout | Number of seconds to pause. Default 5. |
Prefer Wait For over Sleep wherever the screen can tell you when it is ready. See Choosing the right wait.
Exit
Ends the scenario early. Combined with Condition, this is the clean way to stop when there is nothing to do — for example when a Read Emails action returned an empty list.
| Parameter | Description |
|---|---|
| Exit type | Soft or Hard — see below. Soft is the default for newly added Exit actions. |
| Exit type | Behaviour |
|---|---|
| Soft | Stops the normal flow, but actions with Run Action set to Run Always still execute. The browser still gets closed, temporary files still get deleted, the summary e-mail still goes out. Inside a loop, a Soft exit also ends the enclosing loop. |
| Hard | Stops everything immediately, including Run Always clean-up. |
Exit type is new in 0.24.0. Scenarios saved in older versions keep behaving exactly as before — their Exit actions stay Hard. Switch them to Soft deliberately if you want clean-up to run.
Soft is what you almost always want for "nothing to process today". Pair it with a Send As Email marked Run Always and the run still reports that it checked and found nothing — which is very different from a run that never reported at all.