Solved by albanD in post #4 
              
              
                Hi, 
I don’t think you can do anything else that checking after every stage and breaking when you’re done. You have to do this for loop anyway, so adding an if statement into it is not a big deal.