Problems Looping an array, Read on for more info.

So i’ve been working on this for a while, and have gotten to a point where i can’t figure it out, I’m attempting to loop an array, so that, if the current index is equal to the length of the array, it returns 0 instead of the length (which results in an error cause 8 length array only goes from 0-7) and the reverse, if index is less than 0, then return length of array -1 (again cause setting it to length would be 8 again) I have made a macro for this which i’m about 90% sure is working correctly, but i’m still getting errors such as “Tried to get index -1 from array” etc, the adding one works but the other does not, if you can spot the problem in the Screenshots below, it would be very very much appreciated.
Thanks in advance.

Index Loop Macro

Widget Position Array Lerp (Don’t think this works but adding anyway cause its in there)

Widget Blueprint Itself

Again, thanks in advance for any light you may shed on this situation.

P.S. The ReverseForEachLoop worked better as a regular ForEachLoop but i was trying it out when i took the screenshot.

When you’re traversing an array, the index will at most be the length of the array - 1. Try changing the condition in your first screenshot to “<=” instead of “<” !