[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [5.1.4/newbie] How to check end script?
- From: Shmuel Zeigerman <shmuz@...>
- Date: Mon, 07 Mar 2011 12:02:16 +0200
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.