Control the run
Break / continue
Inside a Loop body: Continue skips the rest of this iteration; Break also ends the loop.
Nodes › LogicOpen in Neblex
- Good for
- Controlling a loop
- Role
- Works on the records in a flow
- Find it in
- Nodes › Logic
When to use it
- A loop should stop as soon as it has found what it needs.
- Some iterations should skip the rest of the body.
- Paging should end when a page comes back empty.
Reach for something else when
LoopWhen you are setting up the loop itself.FilterWhen records should simply be dropped before the loop.
Example
Page through an API inside a Loop and Break when a page comes back empty.
How it works
This shape has no settings.
More in the guideAdd it to a flow
- Open the flow from Build › Workflows.
- Open Nodes and find Break / continue under Logic, or search for it. Click it or drag it onto the canvas.
- Drag from the previous step's output handle to its input, then open its settings with ✎ Edit.
- Run the flow and click the step to see the records it received and produced.
More in Control the run
LoopRepeats a group of steps for each record, a set number of times, or while or until a condition holds.Nodes › LogicRun another flowRuns another flow as a reusable sub-flow and continues with its result.Nodes › LogicWaitPauses for a set time before passing records on.Nodes › LogicWait for eventPauses the run until a matching event arrives, then continues with its data.Nodes › LogicSet valueSaves a named value that later steps in the same run can read.Nodes › LogicAssert Data QualityChecks the batch against your rules and stops with precise details when one fails.Nodes › Logic