Printing counter of while loop not in order

I’m trying to loop through a serie of numbers. However if I log the number, the order of the numbers is not correct. I have a very simple while loop where I expect that the order should just be 1,2,3,4,5 etc. However, in the output panel it sometimes shows the order wrong (for example: 1,2,3,5,4)

I have attached a screenshot of the while loop.

I’m using UiPath Studio 2021.10.5 Enterprise Edition

Am I doing something wrong? Or is this a bug?
I really need the order to be correct because I will add an if-statement where there will be some other activities after every 25 counters.

@leobot.dafinci ,sometime the log get swapped, however your while loop will work properly

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.