|
What's the equivalent Lua idiom for C's ? : operator(s)? Obviously I could do it with a function, but that seems a little heavy-weight. Example: Simplify the following: print("Is today Sunday? " .. (function (dow) if dow == 0 then return "yes" else return "no" end end) (0)) Thanks, Curt