turtle.select

From ComputerCraft Wiki
Revision as of 16:01, 24 June 2012 by Thesbros (Talk | contribs) (Undo revision 1829 by 37.59.80.67 (talk))

Jump to: navigation, search


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