Automation Flow Control

In Robin, as the flow of the automation might require to be altered according to a condition, there is the option to set labels and redirect the flow to the label at any time.

A label is marked using the word “label”. In the example below, the label is called “Recheck”.

label Recheck

The automation flow can be redirected using the goto statement.

goto Recheck

An example that this can be used in a case where the process needs to skip some steps during the weekend. The goto will be used within the condition to redirect to the next step of the process.

# Beginning of automation

If day = 'Saturday' or day = 'Sunday' then
goto Skip
# automation steps for weekdays

label Skip
# remaining steps for all cases

Note, that the label and the goto statements need to be under the same function.