turtle.compareTo
From ComputerCraft Wiki
Revision as of 18:53, 28 November 2012 by AfterLifeLochie (Talk | contribs) (Moved to CAT:LuaCoreFunctions)
| Detects if the block in the specified slot is the same as the one in the selected Slot. | |
| Syntax | turtle.compareTo(slot) |
| Returns | boolean true if the selected item matches the one in the specified slot. |
| Part of | ComputerCraft |
| API | turtle |
Examples
| Detects if the item in the selected slot is the same as the one in the specified slot. | |
| Code |
turtle.compareTo(2) |