lua-users home
lua-l archive

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

On Tue, Sep 14, 2010 at 1:37 PM, Carlos Costa <> wrote:
> An expression of type "x ? y : z" where "y" is not a false value

the point is that the condition "where "y" is not a false value" seems
to scare a lot of people.

In my case, i use that idiom mostly when y and z are either constants
or simple expressions.  if they involve table lookups or function
calls, it's safer to use if/then/else