Difference between revisions of "Turtle.back"

From ComputerCraft Wiki
Jump to: navigation, search
(fixed spelling.)
(\/)
Line 1: Line 1:
Content missing.
+
{{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


Grid Redstone.png  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

Grid paper.png  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