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.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.
Gammon Software support
Forum RSS feed ( https://gammon.com.au/rss/forum.xml )