Difference between revisions of "Turtle.back"
From ComputerCraft Wiki
(fixed spelling.) |
(Adding "see also".) |
||
(One intermediate revision by one other user not shown) | |||
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 | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | ==See also== | ||
+ | *[[turtle.forward]] | ||
+ | |||
+ | [[Category:Lua_Core_Functions]] |
Latest revision as of 23:09, 26 April 2015
Function turtle.back | |
Attempts to move the turtle backwards. | |
Syntax | turtle.back() |
Returns | boolean whether the turtle succeeded in moving backwards |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Moves the turtle backwards | |
Code |
print(turtle.back()) |
Output | true if the turtle could move backwards, false if there was something in the way |