turtle.compare

From ComputerCraft
Jump to navigation Jump to search


turtle.compare
Function
Syntax
turtle.compare()
Returns boolean true | boolean false, nil nil
API turtle
Source CC:Tweaked

Compares the block in front of the turtle to the block in the currently selected inventory slot.

If nothing is in the selected slot, and nothing is in front of the turtle, the function returns true.