Difference between revisions of "Turtle.turnRight"
From ComputerCraft Wiki
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 turning right. | + | |returns=[[boolean_(type)|boolean]] whether the turtle succeeded in turning right. |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Attempts to turn the turtle right. | |desc=Attempts to turn the turtle right. |
Revision as of 13:45, 30 November 2012
Function turtle.turnRight | |
Attempts to turn the turtle right. | |
Syntax | turtle.turnRight() |
Returns | boolean whether the turtle succeeded in turning right. |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Turns the turtle right | |
Code |
print(turtle.turnRight()) |
Output | true - the turtle cannot fail to turn right |