Difference between revisions of "Turtle.compareTo"
From ComputerCraft Wiki
| Line 6: | Line 6: | ||
|returns=[[boolean]] true if the selected item matches the one in the specified slot. | |returns=[[boolean]] true if the selected item matches the one in the specified slot. | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
| − | |desc=Detects if the block in | + | |desc=Detects if the block in the specified slot is the same as the one in the selected Slot. |
|examples= | |examples= | ||
{{Example | {{Example | ||
Revision as of 01:39, 25 September 2012
| 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) |