I am new to Lua, and trying to get something of this type done in my code, but its not working. Here the syntax and all is absolutely correct, but the elseif condition is going for a toss, and the conditional check is going wrong.
So for this the output that I am getting is: Value = 40 or 42, which is wrong
The Lua version that I am using is 5.2
function call(a)
print (a)
if a == 40 or 42 then
print ("Value = 40 or 42")
elseif a == 43 or 45 then
print ("Value = 43 or 45")
elseif a == 46 or 47 then
print ("Value = 46 or 47")
end
end
a = 47
call(a)