While loop - Counting error

Hello, good morning to y’all

My While Loop is giving me the following output:
image

My project:

Another one:
image

Any ideas?

Thank you in advance!

Hi @Andre_Vieira,

What are you after on the output? A display of 1-5? Or 0-5?

If you switch your activities in the loop around you should get 1-5 displayed

Hello!! @william.coulson
I’m looking 0-5, the sequence now is 0 1 2 3 5 4

Hi @Andre_Vieira,

I used Number <> 5 in the while and got the following:


image

You can set the number as -1 before the while and you will get the following:
image

1 Like

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