Difference between revisions of "Turtle.compareTo"
From ComputerCraft Wiki
Legomany3448 (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=turtle.compareTo |args=slot |api=turtle |returns=boolean true if the selected item matches the one in the specified slot. |addon=ComputerCra...") |
Legomany3448 (Talk | contribs) m |
||
Line 11: | Line 11: | ||
|desc=Detects if the item in the selected slot is the same as the one in the specified slot. | |desc=Detects if the item in the selected slot is the same as the one in the specified slot. | ||
|code=turtle.compareTo() | |code=turtle.compareTo() | ||
+ | }} | ||
}} | }} |
Revision as of 01:02, 25 September 2012
Function turtle.compareTo | |
Detects if the block in below 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
Example | |
Detects if the item in the selected slot is the same as the one in the specified slot. | |
Code |
turtle.compareTo() |