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' expected2: I don't know how to stuff booleans from turtle.detect() into a variable
SOLVED
Edited by Rangemuldee, 09 September 2012 - 10:02 PM.












