# \[Suggestion\] Alternate method for breaking out of an array loop

**URL:** <https://forums.unrealengine.com/t/suggestion-alternate-method-for-breaking-out-of-an-array-loop/302329>\
**Category:** Editor Scripting\
**Tags:** arrays, array-nodes, unreal-engine, feedback, Blueprint, question\
**Created:** [December 23, 2014, 10:58am UTC](https://forums.unrealengine.com/t/suggestion-alternate-method-for-breaking-out-of-an-array-loop/302329 "2014-12-23T10:58:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAVaught](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RAVaught](https://forums.unrealengine.com/u/RAVaught)\
**Post date:** [December 23, 2014, 10:58am UTC](https://forums.unrealengine.com/t/suggestion-alternate-method-for-breaking-out-of-an-array-loop/302329/1 "2014-12-23T10:58:13Z")

</div>

Currently, the ForEachWithLoop node requires the creation of an external event to break out of the loop. This can be… irritating, not to mention inefficient.

I would like to suggest adding a new input pin to the Array node. This pin would accept a boolean condition that, while true (or false, depending on how you want to set it up), would continue to loop through the array. Essentially, this would combine the functionality of a while loop with that of a ForEachWithBreak loop without requiring the addition of more nodes to the graph and without requiring events to be fired to trigger the break.
