Difference between revisions of "Turtle.select"
From ComputerCraft Wiki
(Anh con Ta voi nhau xem di) |
(Undo revision 1829 by 37.59.80.67 (talk)) |
||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
+ | {{Function | ||
+ | |name=turtle.select | ||
+ | |args=[[int (type)|int]] slotNumber | ||
+ | |api=turtle | ||
+ | |returns=[[boolean]] whether the slot number specified is greater than nine or not. | ||
+ | |addon=ComputerCraft | ||
+ | |desc=Attempts to select the specified slot. | ||
+ | |examples= | ||
+ | {{Example | ||
+ | |desc=Selects the specified slot | ||
+ | |code=print(turtle.select(5)) | ||
+ | |output=true | ||
+ | }} | ||
+ | }} |
Revision as of 16:01, 24 June 2012
Function turtle.select | |
Attempts to select the specified slot. | |
Syntax | turtle.select(int slotNumber) |
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 |