Difference between revisions of "Turtle.select"
From ComputerCraft Wiki
m (Fixed typo, stated 1-6, should have been 1-9) |
(Changing int to number) |
||
Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=turtle.select | |name=turtle.select | ||
− | |args=[[ | + | |args=[[type|number]] slotNumber (1-16 in ComputerCraft 1.4+, otherwise 1-9) |
|api=turtle | |api=turtle | ||
|returns=[[boolean_(type)|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. |
Revision as of 11:08, 18 July 2013
Function turtle.select | |
Attempts to select the specified slot. | |
Syntax | turtle.select(number slotNumber (1-16 in ComputerCraft 1.4+, otherwise 1-9)) |
Returns | boolean whether the slot number specified is greater than nine or not. |
Part of | ComputerCraft |
API | turtle |
Examples
Example | |
Selects the specified slot | |
Code |
print(turtle.select(5)) |
Output | true |