# Blueprint Macro for Reverse For Loop With Break 

**URL:** <https://forums.unrealengine.com/t/blueprint-macro-for-reverse-for-loop-with-break/2697275>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [February 4, 2026, 3:51pm UTC](https://forums.unrealengine.com/t/blueprint-macro-for-reverse-for-loop-with-break/2697275 "2026-02-04T15:51:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nabladeveloper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nabladeveloper](https://forums.unrealengine.com/u/Nabladeveloper)\
**Post date:** [February 4, 2026, 3:51pm UTC](https://forums.unrealengine.com/t/blueprint-macro-for-reverse-for-loop-with-break/2697275/1 "2026-02-04T15:51:34Z")

</div>

Attached the macro setup of “reverse for loop with break”. Why would you ever need this? Well, the default for loop with break blueprint macro isn’t set-up to detect when the first index is greater than the last index, and Unreal 5.7 only includes a ReverseForEachLoop Macro to handle reversing through arrays. There’s a post with a “reverse for each loop” macro, but that doesn’t do you much good if you need to dynamically remove indexes while iterating through the array.

Pretty simple, we just reverse the \<= in the “for loop with break” and instead of +1, we -1.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/9/319c179725bc8afeb1a9900f2662215f517cc35e.jpeg)
