break

Quit from loop.

break

Remarks

Quit from "for" and "while" loop.

Example

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

See also