Difference between revisions of "Turtle.compareDown"

From ComputerCraft Wiki
Jump to: navigation, search
(Corrected mapping from "Boolean" to "Boolean (type)")
(rjksdfgjnvk)
Line 1: Line 1:
{{lowercase}}
+
uerijhfgviokc
{{Function
+
|name=turtle.compareDown
+
|args=
+
|api=turtle
+
|returns=[[boolean_(type)|boolean]] true if the block below the turtle is the same as the one in the selected Slot.
+
|addon=ComputerCraft
+
|desc=Detects if the block in below is the same as the one in the selected Slot.
+
|examples=
+
{{Example
+
|desc=Detects if the block below is the same as the one in the selected Slot.
+
|code=turtle.compareDown()
+
}}
+
{{Example
+
|desc=Digs down until the selected block is seen.
+
|code=while not turtle.compareDown() do
+
  turtle.digDown()
+
  turtle.down()
+
end}}
+
}}
+
 
+
[[Category:Lua_Core_Functions]]
+

Revision as of 17:10, 4 December 2012

uerijhfgviokc