While Loop inside repeat turns into infinite loop, bug or just me being silly?

I have a scenario where I need to add a while loop inside a repeat.

The repeat goes through a database table of products, and then repeats through each record pulling additional API data for each, because the API has a 100 record limit I need to use a while loop to get the entire result set.

It would be very confusing to try show the exact script because its pretty large, but here is a small test case i created which runs infinitely.

Maybe its just not possible to do this as the global value is inside the repeat and so it can not reset it.

Community Page
Last updated: