lua-users home
lua-l archive

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


>     print("Is today Sunday? " .. (function (dow) if dow == 0 then return
> "yes" else return "no" end end) (0))

print ("Is today Sunday? " .. (function (dow) return dow == 0 and "yes" or
"no" end) (0))

-- 
http://www.mupsych.org/~rrt/ | The only person worth beating is yourself