turtle.select

From ComputerCraft Wiki
Revision as of 05:19, 13 March 2012 by Uncreative Name (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=turtle.select |args= |api=turtle |returns=boolean whether the slot number specified is greater than nine or not. |addon=ComputerCraft |desc=...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function turtle.select
Attempts to select the specified slot.
Syntax turtle.select()
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())
Output true unless slot number specified is greater than nine