lua-users home
lua-l archive

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


On Jul 9, 2014, at 1:19 PM, Shmuel Zeigerman <shmuz@013net.net> wrote:

> On 09/07/2014 23:13, Tim Hill wrote:
>> 
>> Anyway, in Lua you can always write “not x == y” :)
>> 
> 
> "1 ~= 2" is true but "not 1 == 2" is false.
> 
> -- 
> Shmuel
> 

Come now, my point was the semantics, not worrying about parentheses, which I assumed people would be able to figure out. However, for those who need it…

You can always use “not (x == y)” instead of “x ~= y”.

Better?

—Tim