lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 18 Jun 2009, at 19:08, Paul Butler wrote:

Why does the "break" end the function?
I was expecting it to count to 10 and just skip over 5.

See <>: "The break statement is used to terminate the execution of a while, repeat, or for loop, skipping to the next statement after the loop"

With regards
-- Stefan