I spent quite a long time finding this. Code:
Output:
That can’t be right?..
Ah… been looking at it too loooonnnggg!!..
I should have done it with an IF!..
Wow you are doing recursion. It will go endlessly.
For behaviour is just its trigger right execution pin 10 times already. You dont need to connect the beginning of while again.
Just remove ++ to while execution pin.
You will get your response.
Why would you need an if, the while loop will work perfectly, if you just remove the pin from your ++ going to the while loop, it automatically loops it, you are looping it manually, aswell as it is looping, therefore creating an infinite loop
In the case I was actually using it, the if with the loopback was much clearer than the while loop version. Because I have already once used what was going to be on the execute branch…