The break statement is used to terminate a loop (while, repeat or for loop) early.
Also see the return statement which is used to leave the current function (not just the current loop).
See Also ...
Lua base functions
(Help topic: lua=break)
Enter a search string to find matching documentation.
Gammon Software support
Forum RSS feed ( https://gammon.com.au/rss/forum.xml )