API loop not working on a last iteration

I am trying to make a simple loop to go though each element of the list and write iteration number next to the list item.
But last item keeps being ignored by the loop, no matter what I do?
I did check :count it is correct, but then I start iterating it just ignores last item in DO search loop


Hello @vgromatovics91

If the listCount is 25 then the brake will only work up to item #24 (because for the next item #25 the brake works when it is less than 25 … which 25 is not less than 25)

Just increase the total 25+1 (change it to 26 instead of 25) and things should work :wink:

This topic was automatically closed after 70 days. New replies are no longer allowed.