redstone.setOutput("right", true)
print "Type 'open' or 'close' to Open or close the airlock."
function A()
print ""
write ">"
input = read()
if input == "open" then
print "Opening..."
redstone.setOutput("right", false)
A()
else
print "Command not recognised."
A()
end
if input == "close" then
print "Closing..."
redstone.setOutput("right", true)
A()
else
print "Command not recognised."
A()
end
end
When I try to run it it just says the first line and then goes to the normal console. I know it's bad to call a function in a function but I don't know what else to do!












