lua-users home
lua-l archive

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


On Tue, Dec 16, 2014 at 8:38 PM, Soni L. <fakedme@gmail.com> wrote:
> if x or Return(nil, "missing x") then ... end
>
> vs
>
> if not x then
>   return nil, "missing x"
> else
>   ...
> end


vs.

if not x then return nil, "missing x" end
....    -- no need for 'else'

-- 
Javier