Difference between revisions of "Turtle.select"
From ComputerCraft Wiki
m (Moved to CAT:LuaCoreFunctions) |
(Corrected mapping from "Boolean" to "Boolean (type)") |
||
| Line 4: | Line 4: | ||
|args=[[int (type)|int]] slotNumber (1-16 in ComputerCraft 1.4+, otherwise 1-6) | |args=[[int (type)|int]] slotNumber (1-16 in ComputerCraft 1.4+, otherwise 1-6) | ||
|api=turtle | |api=turtle | ||
| − | |returns=[[boolean]] whether the slot number specified is greater than nine or not. | + | |returns=[[boolean_(type)|boolean]] whether the slot number specified is greater than nine or not. |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|desc=Attempts to select the specified slot. | |desc=Attempts to select the specified slot. | ||
Revision as of 13:45, 30 November 2012
| Attempts to select the specified slot. | |
| Syntax | turtle.select(int slotNumber (1-16 in ComputerCraft 1.4+, otherwise 1-6)) |
| Returns | boolean whether the slot number specified is greater than nine or not. |
| Part of | ComputerCraft |
| API | turtle |
Examples
| Selects the specified slot | |
| Code |
print(turtle.select(5)) |
| Output | true |