The Break statement is used to exit a While, Switch, Select, or For/Next structure.
break
none
Use the Break statement to exit a While, Switch, Select, or For/Next structure. It transfers control to the statement immediately following the nearest enclosing EndWhile, EndSwitch, EndSelect, or Next. It is used to terminate loops and to exit Switch statements - usually just before the next case statement.
a=15 b=21 While (a<100) a=a+1 If a==4 Then Break b=b+1 EndWhile Message("Break", "It Broke.")