Difference between revisions of "Turtle.compareTo"
From ComputerCraft Wiki
(Corrected mapping from "Boolean" to "Boolean (type)") |
(Adding "see also".) |
||
Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
+ | |||
+ | ==See also== | ||
+ | *[[turtle.compare]] | ||
+ | *[[turtle.compareUp]] | ||
+ | *[[turtle.compareDown]] | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Latest revision as of 16:21, 22 April 2015
Function turtle.compareTo | |
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
Example | |
Detects if the item in the selected slot is the same as the one in the specified slot. | |
Code |
turtle.compareTo(2) |