lua-users home
lua-l archive

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


On 10/09/2010, at 6:11 PM, steve donovan wrote:

> On Fri, Sep 10, 2010 at 7:59 AM, Henk Boom <henk@henk.ca> wrote:
>> This doesn't work when it's possible for good() to return false or nil
> 
> This is true, and I've been bitten by this one before.
> 
> a = x == y and (good() or true) or bad()

Does that still work if you want the false or nil from good()?