Difference between revisions of "Turtle.compareTo"

From ComputerCraft Wiki
Jump to: navigation, search
(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


Grid Redstone.png  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

Grid paper.png  Example
Detects if the item in the selected slot is the same as the one in the specified slot.
Code
turtle.compareTo(2)


See also