Skip to main content
Version: 0.24.0

Flow Control Actions

Actions in the Flow Control group — branching, assertions, pauses and early exit. Loops have their own sub-group, Loop.

note

The group was renamed from Flow to Flow Control. Create variable moved to Tools, and Section and Comment moved to Project.

Condition

Branches the scenario. Inserting it automatically creates the True and False sub-sections; put the actions for each outcome inside them.

The Condition form next to the Commands tree, so the generated

ParameterDescription
ConditionExpression 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.

The Assert form with a condition and a message filled in

ParameterDescription
ConditionLogical expression that must evaluate to true.
MessageText logged and raised when the assertion fails.
tip

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.

The Sleep form showing the Timeout field

ParameterDescription
TimeoutNumber of seconds to pause. Default 5.
warning

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.

ParameterDescription
Exit typeSoft or Hard — see below. Soft is the default for newly added Exit actions.
Exit typeBehaviour
SoftStops 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.
HardStops everything immediately, including Run Always clean-up.
Upgrading from 0.23.x

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.

tip

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.