Stop the loop and Next item
Inside a loop you sometimes do not want to finish everything. With Next item (continue) you skip the rest of this pass and go on with the next item. With Stop the loop (break) you stop altogether: the workflow continues after the loop. Both only exist inside a loop, usually after an If / Else. Here you look for the first product that is sold out.
Open Flow and create a workflow
In the portal, under Environments, click Development and there Open; Flow opens in a new tab. There, click + next to General, choose New workflow and give it a name. A new workflow starts with an Event trigger: the point where it begins.
A list of products and a loop
Put a list of products with their stock in the trigger's sample data. Add a Loop over products and call the current item product.
A rule inside the loop
At the bottom of the loop, choose If / Else under Add step: is product.stock greater than 0?
No: remember and Stop the loop
If the stock is 0, remember the name with Transform data (sold_out = {{product.name}}) and then choose Stop the loop. Connect No → Remember product → Stop the loop. The rest of the list is not looked at any more.
Put the steps in one line and save
Select the steps (click the first, and the others while holding Shift) and click Align horizontally: they then stand in one line and you read the workflow from left to right; a branch (such as No of an If / Else) gets its own row below. Fit to view puts everything in sight; then Save.
This guide was carried out step by step on 22 Oct 2026 by an automated test on Flow (version 3e563176).





































