Difference between revisions of "Turtle.select"
From ComputerCraft Wiki
(>:() |
(Outdated picture) |
||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=turtle.select | |name=turtle.select | ||
| − | |args=[[int (type)|int]] slotNumber | + | |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]] whether the slot number specified is greater than nine or not. | ||
| Line 13: | Line 13: | ||
|output=true | |output=true | ||
}} | }} | ||
| − | |||
| − | |||
}} | }} | ||
Revision as of 11:28, 4 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 |