Quit from loop. (version 4.53 or later)
break
Quit from "for" and "while" loop.
for i 1 10 yesnobox 'quit from loop?' 'Tera Term' if result break next while 1 recvln strcompare inputstr "OK" if result=0 then break else sendln "abc..." endif endwhile