Posted 21 January 2013 - 12:05 PM
I am trying to make a simple code that will take a number from the user and pulse a redstone signal that many times. But when I run it it says "Attempt to compare string with number expected, got string". my question is why does it think that I am inputting a string, and how do I fix it?
print("Enter #")
a = read()
i = 0
while a>i do
rs.setBundledOutput("right", colors.green)
sleep(2)
print("done")
rs.setBundledOutput("right", colors.red)
sleep(0.2)
i = i+1
end