Posted 08 September 2015 - 03:02 AM
so basically I'm trying to code a menu screen (I'm very new to computercraft) and whenever I input anything nothing happens, so I have no idea whats wrong.
Here's the code
Here's the code
while true do
term.clear()
term.setBackgroundColor(colors.green)
term.setCursorPos(1, 1)
print("Please choose an Action")
term.setCursorPos(1, 2)
print("Type actions to show all actions")
input = read()
if input == "actions" then
print("Open Door")
term.setCursorPos(1, 2)
print("Current Factory Tests")
if input == "Open Doo" then
shell.run "disk/opendoor"
if input == "Current Factory Tests" then
shell.run "disk/currenttests
end
end
end
end