The “break“ node is used to stop iteration and exit from any loop node (foreach, for, while, do).


Using example

In this example we “break” the while loop when the value is more than 5:

In another example we iterate through all objects in a collection and stop the foreach loop when we find the object that we are looking for and it makes no sense to continue the loop:

Render time: 0.01 seconds
136,986 unique visits