Skip to content

Continue

Type: continue  ·  Package: Core Activities v1.0.0

Skip the remaining activities of the current loop of the loop and go directly to the next. Unlike Break (which exits the loop), Continue only skips one iteration and the loop continues. Use it to skip elements you don’t want to process — a row with no data, an already read email.

When executed within 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 within an If.

It has no parameters.

Loop through rows and skip the ones without mail, without stopping the loop:

For Each items = = tabla itemVariable = fila
└─ activities:
If condition = = isEmpty(str(row["Correo"]))
└─ then:
Log level = warning message = "Fila sin correo; se omite"
Continue // pasa a la siguiente fila
SMTP Send to = = str(row["Correo"]) subject = "Aviso"

In this example, when the row does not have mail, the notice is registered and Continue skips sending, moving to the next row.