Difference between revisions of "Turtle.back"

From ComputerCraft Wiki
Jump to: navigation, search
m (Moved to CAT:LuaCoreFunctions)
m (Corrected mapping from "Boolean" to "Boolean (type)")
Line 4: Line 4:
 
|args=
 
|args=
 
|api=turtle
 
|api=turtle
|returns=[[boolean]] whether the turtle succeeded in moving backwards
+
|returns=[[boolean_(type)|boolean]] whether the turtle succeeded in moving backwards
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|desc=Attempts to move the turtle backwards.
 
|desc=Attempts to move the turtle backwards.

Revision as of 13:43, 30 November 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