For Loop With Condition and increment/decrement

Hey.
I’m trying to make a macro for loop with condition and input for selecting increment or decrement index value.
it doesn’t work at all. launching the macro cause system freeze and crash the unreal Play mode.I can’t see any logical problem. what’s wrong with my macro?

Thanks

Try to debug with break points (right click node and there should be “add break point”) and check if all pins act as you expect (you can check state of pin by hovering over it during break) see if loop finishes.

Freeze most likely happens due to infinite loop, if you loop blueprint you stop the rest of engine (this includes editor) code from execution. but still it’s weird Blueprint VM has a protection for infinite loops (i think when it detects 10000 loops) so it is potential bug, but first confirm if you get infinite loop

Thanks, . I couldn’t fix the issue, so made decremental “for loop” and did what I intended to do.