even when i am typing the n. what am i doing wrong?
code is below pls help me.
term.clear()
term.setCursorPos(1, 1)
local input
print("do you want to call the pod?")
print()
print("y/n")
print()
input = read()
-- answer to the question: do you want to call the pod
if input == "y" or "Y" then
print("the pod is on it's way down")
elseif input == "n" or "N" then
print("do you want to send the pod up?")
print()
print("y/n")
print()
input = read()
if input == "y" or "Y" then
print("the pod is on its way up")
elseif input == "n"or"N" then
print("okay the pod will stay where it is")
else
print("that is not a valid input, please try again")
end
else
print("that is not a valid input please try again")
end
Edited by Lyqyd, 15 February 2013 - 08:04 AM.
added code tags











