For testing, I made this:
print "1 = ?" --Answer is 1
input = read()
if input == 1 then
print "Yes"
else
print("No" .. input .. "isn't 1"
end
If I then type in 1, it says "No 1 isn't 1"
I have no idea why.
Could somebody help me here?
Posted 27 June 2013 - 02:37 PM
print "1 = ?" --Answer is 1
input = read()
if input == 1 then
print "Yes"
else
print("No" .. input .. "isn't 1"
end
Posted 27 June 2013 - 02:53 PM
Posted 27 June 2013 - 03:06 PM
Posted 28 June 2013 - 09:16 AM
Posted 30 June 2013 - 03:09 PM
if input == "1" thenor
input = tonumber(read())because "1" isn't 1, but tonumber("1") == 1
0 members, 1 guests, 0 anonymous users