Posted 04 September 2012 - 04:45 AM
I am making a program that creates a downward staircase this is a what I have so far
1: It always returns this error
SOLVED
function check()
print("Am I facing the correct direction? true/false")
check = io.read()
if check == false then
turtle.turnLeft()
check()
else
stair()
end
end
function stair()
turtle.forward()
turtle.placeDown()
turtle.forward()
turtle.down()
turtle.detectDown()
end
I have two things1: It always returns this error
:5: 'then' expected
2: I don't know how to stuff booleans from turtle.detect() into a variableSOLVED
Edited on 09 September 2012 - 09:02 PM