For i.w=0 To 10 NPrint "Counting... ",i ; This is where we check to see if we should exit the loop If i=5 ; And this is where we actually exit the loop ; First we pop the innermost loop we MUST pop (i.e. the For loop - If's do not count) Pop For ; Then we must jump past the end of loop command Goto exitloop EndIf Next exitloop: MouseWait End