Skip to content

Break

Type: break  ·  Package: Core Activities v1.0.0

Exits immediately the loop (For Each, For Loop or While) that contains it, without finishing the remaining loops. Execution continues with the activity that comes after the loop. Use it when you find what you were looking for or a condition occurs that makes it unnecessary to continue iterating.

When executed, it interrupts the closest loop around it. It is normally placed inside an If to exit only under a certain condition.

It has no parameters.

Find the first row that meets a condition and stop:

For Each items = = tabla itemVariable = fila
└─ activities:
If condition = = str(row["Estado"]) == "Aprobado"
└─ then:
Set Variable name = encontrada value = = fila
Break // ya la encontramos: no seguir recorriendo