lua-users home
lua-l archive

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


On 07/03/2011 11:40, Gilles Ganault wrote:
I need to exit a script in case the user forgot to pass a parameter,
and noticed that return works in the "if" block but doesn't when used
in the main loop:  [snip]

Instead of just `return', you can always say:
  do return end
and that will return from the script.

--
Shmuel