[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: "Not false" bug?
- From: Desislav Velchev <desislav.velchev@...>
- Date: Fri, 8 Feb 2013 03:54:39 +0200
I've been trying out the logical expressions (from a tutorial) and I came accross a strange bug. Here's the code I wrote and it's output:
print(3 == 2);
print(not 3 == 2);
So if 3==2 is an obviously false statement and the "not" keyword inverts false to true, how can the "not" of a false statement also return false?
I am using Sublime Text 2 and I downloaded the latest version of LUA, so I'd really like to know if this is a bug from the language, from ST2 or have I made a mistake somewhere.