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.
/img/editor/actions/flow/condition.pngCapture: the Condition form next to the Commands tree, so the generated True and False branches are visible.
| 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.
/img/editor/actions/flow/assert.pngCapture: the Assert form with a condition and a message filled in.
| 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.
/img/editor/actions/flow/sleep.pngCapture: the Sleep form showing the Timeout field. Note: the old page described this action with the wrong text (it repeated the Section description) — the new caption must describe a pause.
| 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
Terminates the scenario immediately. Takes no parameters beyond Run Action.
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.