[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Zero as False
- From: Paige DePol <lual@...>
- Date: Tue, 19 Nov 2013 17:27:20 -0600
> On Nov 19, 2013, at 5:12 PM, Coda Highland <chighland@gmail.com> wrote:
>
> 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
Thank you for your input, neither of those lines print anything at this time, so there is a problem somewhere. I also notice that if I change the == to ~= then both lines will print, so there is something going on with the boolean keywords themselves I think.
I will check into the issue and see what I can find out. Thank you *very* much for your feedback, it is appreciated! :)
~pmd~