Difference between revisions of "Turtle.select"
From ComputerCraft Wiki
m (correcting link) |
(Adding "see also".) |
||
| Line 14: | Line 14: | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | ==See also== | ||
| + | *[[turtle.getSelectedSlot]] | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] | ||
Revision as of 23:15, 26 April 2015
| 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
| Selects the specified slot | |
| Code |
print(turtle.select(5)) |
| Output | true |