# Next iteration

The Next Iteration action node can be placed inside a [While](https://docs.appfarm.io/library/action-nodes/while) or [Foreach](https://docs.appfarm.io/library/action-nodes/foreach) loop to immediately end the current iteration and start the next iteration. If it is triggered in the last iteration of the loop, it will end its execution.&#x20;

### Example

In this example, a list of orders is iterated. If the order status is Delivered, the Next Iteration action node is triggered and skips to the next order without evaluating the second [If](https://docs.appfarm.io/library/action-nodes/if) block.

<figure><img src="https://29237295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MiLU-xcHu0eLZiTxcmZ%2Fuploads%2FFDujmAKgdNyFpDafIOsx%2Fimage.png?alt=media&#x26;token=b7edcf68-cf39-44b5-aea5-939160791dd2" alt=""><figcaption></figcaption></figure>
