turtle.forward
From ComputerCraft Wiki
| Attempts to move the turtle forward. | |
| Syntax | turtle.forward() |
| Returns | boolean whether the turtle succeeded in moving forwards |
| Part of | ComputerCraft |
| API | turtle |
Examples
| Moves the turtle forward | |
| Code |
turtle.forward() |
| Output | true if the turtle could move forwards, false if there was something in the way |