The exit statement forces an early exit from a loop that is under for...next or loop...repeat control.
exit
The program continues with the next executable statement after the next or repeat statement.
loop input guess if guess=’end’ then exit while guess > 1 and guess < 100 do repeat