Difference between revisions of "Turtle.back"
From ComputerCraft Wiki
(fixed spelling.) |
(\/) |
||
| Line 1: | Line 1: | ||
| − | + | {{lowercase}} | |
| + | {{Function | ||
| + | |name=turtle.back | ||
| + | |args= | ||
| + | |api=turtle | ||
| + | |returns=[[boolean_(type)|boolean]] whether the turtle succeeded in moving backwards | ||
| + | |addon=ComputerCraft | ||
| + | |desc=Attempts to move the turtle backwards. | ||
| + | |examples= | ||
| + | {{Example | ||
| + | |desc=Moves the turtle backwards | ||
| + | |code=print(turtle.back()) | ||
| + | |output=true if the turtle could move backwards, false if there was something in the way | ||
| + | }} | ||
| + | }} | ||
| + | |||
| + | [[Category:Lua_Core_Functions]] | ||
Revision as of 10:18, 4 December 2012
| Attempts to move the turtle backwards. | |
| Syntax | turtle.back() |
| Returns | boolean whether the turtle succeeded in moving backwards |
| Part of | ComputerCraft |
| API | turtle |
Examples
| Moves the turtle backwards | |
| Code |
print(turtle.back()) |
| Output | true if the turtle could move backwards, false if there was something in the way |