lua-users home
lua-l archive

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


On Tue, Nov 19, 2013 at 2:59 PM, Paige DePol <lual@serfnet.org> wrote:
>> On Nov 19, 2013, at 4:35 PM, Rena <hyperhacker@gmail.com> wrote:
>>
>> And the == and ~= operators?
>
> Those work as expected, which is why I think the 'and' and 'or' operators should also work properly.

I think the question is, what does:

if zero == false then print("zero == false") end
if zero == true then print("zero == true") end

output? It's one thing to change the falsiness of 0 in a boolean
context, but does it extend to equality comparisons?

/s/ Adam