Ok so I was working was wokring on this one part for a Chess Game I'm making. When I ran into a small little error which I couldn't really place. So I created a separate script to work it out and now I'm even more confused.
--Conceptual Problem
local NumVar = 2
local NumVar2 = 8
local Answer = 1
if Answer == NumVar then
print("Horay!1")
end
if Answer == NumVar2 then
print("Horay!2")
end
if Answer == NumVar or NumVar2 then
print("Should Not Ever print")
end
This is what I tested in my separate script. Now I was under the impression that because the variable Answer is not equal to either NumVar or NumVar2, the print("Should Not Ever print") would never print. Yet for some reason it does, and I can't quite figure out why. Anyone have any ideas?

2 comments
Thanks man, that does make alot of sense. And frankly I'm surprised I never figured this out having been learning with Lua for well over a year and a half now
Hey we all make mistakes lol