Exits from a for...endfor or repeat...until loop.
exit()
None
This example shows how to break from a loop when a specific word, in this case ’Invoice,’ is found somewhere on the data page.
define(&x,integer,1)
for(&x,1,1,¤t.lpp)
if(pos('Invoice',@(&x,1,80))>0)
exit()
endif
endfor()