Talk:Lua Tutorials/@comment-2225136-20120607233253/@comment-85.30.158.193-20120704184150

You seem to be a real boss at this shit. I made a program for my quarry, but it doesn't work.

yes = y no = n print ("On? y/n") answer = read if answer == yes then rs.setOutput("right", true) print("On") else end if answer == no rs.setOutput("right", false) print("Off.") else print("Bad answer") sleep(2) end os.shutdown