Continue
Continue
Section titled “Continue”Type: continue · Package: Core Activities v1.0.8
Skips the remaining activities of the current pass of the loop and goes straight to the next one. Unlike Break (which exits the loop), Continue only skips one iteration and the loop goes on. Use it to skip elements you don’t want to process — a row without data, an email already read.
How it works
Section titled “How it works”When it runs inside a For Each, For Loop or While, it abandons the current iteration and the loop continues with the next element (or the next evaluation of the condition). It usually goes inside an If.
- In For Each, the
indexVariableposition keeps advancing, so the next element arrives with its correct index. - It passes through an If, a Try / Catch (it does not trigger the
catch; thefinallyruns) or a Retry, but not an Invoke Playbook.
Required parameters
Section titled “Required parameters”None.
Optional parameters
Section titled “Optional parameters”None.
Output
Section titled “Output”This activity does not return a value.
Example
Section titled “Example”Loop through rows and skip the ones without an email, without stopping the loop:
For Each items = table itemVariable = row └─ activities: If condition = isEmpty(str(row["Email"])) └─ then: Log level = warning message = "Row without email; skipped" Continue // move on to the next row SMTP Send to = str(row["Email"]) subject = "Notice"In this example, when the row has no email the warning is logged and
Continueskips the sending, moving on to the next row.
Common errors
Section titled “Common errors”| Message | Cause and fix |
|---|---|
continue | A Continue ran with no loop around it (or inside an invoked playbook): the execution fails with that message. Move the Continue inside the loop. |