Skip to content

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.

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 indexVariable position 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; the finally runs) or a Retry, but not an Invoke Playbook.

None.

None.

This activity does not return a value.

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 Continue skips the sending, moving on to the next row.

MessageCause and fix
continueA Continue ran with no loop around it (or inside an invoked playbook): the execution fails with that message. Move the Continue inside the loop.