function GeheZu (zielx , zielz)
print(zielx)
print(zielz)
print("gehe zu")
while x < zielx and x < 18 do
turtle.forward()
x = x + 1
sleep(0.5)
end
while x > zielx and x > 1 do
turtle.back()
x = x - 1
sleep(0.5)
end
while z < zielz and z <3 do
turtle.up()
z = z + 1
sleep(0.5)
end
while z > zielz and z > 1 do
turtle.down()
z = z - 1
sleep(0.5)
end
print("fertig")
end
produce this error:
test:20: attemt to compare __lt on nil and number
hope someone can help me











