Announcement

Collapse
No announcement yet.

Stop a for, do loop

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stop a for, do loop

    Hi all,

    is there a way to stop a for, do loop before its natural end?
    I should take control over the loop, but I've no way to do it because I can't press any button while that loop is running...
    I would do a loop "until" button pressed, for example, but I don't know how and overall if it's a possible thing to do.

    Thanks a lot
    Marco

  • #2
    use "break"

    Comment


    • #3
      Do you say to use "break" in a button? But I can't press any button until the loop has ended! How can I use break this way? I don't know when the user interaction happens.

      Comment

      Working...
      X