Difference between revisions of "Turtle.select"

From ComputerCraft Wiki
Jump to: navigation, search
(Undo revision 1829 by 37.59.80.67 (talk))
m (Added a reference picture for slot numbers)
Line 13: Line 13:
 
|output=true
 
|output=true
 
}}
 
}}
 +
 +
A picture reference[http://i.imgur.com/1BNQH.png]
 
}}
 
}}

Revision as of 21:34, 25 June 2012


Grid Redstone.png  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

Grid paper.png  Example
Selects the specified slot
Code
print(turtle.select(5))
Output true



A picture reference[1]