[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: [5.1.4/newbie] How to check end script?
- From: Gilles Ganault <gilles.ganault@...>
- Date: Mon, 07 Mar 2011 10:40:45 +0100
I have a newbie question for which Google didn't really help.
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:
if arg == nil then
-- why does this work?
-- why does "return" not work?
-- " '<eof>' expected near '=' "
if true then return end
Why is that?
Thank you for your help.