Skip to content
English
  • There are no suggestions because the search field is empty.

Break Iterator

Learn how to use the Break function in APIANT Array Iterators to stop iterations based on conditions, including how breaks behave in nested iterators and their scoped control.

It is possible to halt an Array Iterator's iterations. This is usually only done based on a conditional evaluation where a certain condition requires that iteration be halted.

Within an iterator's path, click a "+" icon to add the break:

Document image
 
Document image
 

Breaks are scoped to their nearest iterator.

If a break is performed within a nested iterator, only the inner iterator is halted.