Posted 02 December 2013 - 06:42 PM
I have an advanced computer with a wireless modem on the right.
My program :
==============================================================================
rednet.open("right")
local modem = peripheral.wrap("right")
text = io.read()
==============================================================================
Then it needs to check if the input was a "1" or "2" or "3" or "4" using a if statement i am using this which does not work :
==============================================================================
if text ~= "1" or "2" or "3" or "4" then
print("Incorrect Data")
end
==============================================================================
Need some help figuring this out
Thank You in advance!
My program :
==============================================================================
rednet.open("right")
local modem = peripheral.wrap("right")
text = io.read()
==============================================================================
Then it needs to check if the input was a "1" or "2" or "3" or "4" using a if statement i am using this which does not work :
==============================================================================
if text ~= "1" or "2" or "3" or "4" then
print("Incorrect Data")
end
==============================================================================
Need some help figuring this out
Thank You in advance!