I have a Do .. While loop in which two For .. loops are nested; the first For .. loop counts from 1 to X, the second loop counts from X to 1. This is currently repeating itself ad infinitum.
Now I want the user to be able to βinterruptβ this endless loop and that the program executes XYZ when the loop is interrupted.
I tried using the toggle button in conjunction with the Do .. While loop, but while the above loop is working, the input is not accepted. The state of the button does not change when pressed if the code starts a cycle.
Any suggestions are welcome.
source share