turtle.detect() if true then print("true") end if false then print("false") end
The compare function is the same.
----Edit:
Thanks CastleMan2000.
Posted 16 September 2012 - 12:52 AM
turtle.detect() if true then print("true") end if false then print("false") end
Posted 16 September 2012 - 12:56 AM
local detectBlock = turtle.detect() if detectBlock == true then print("true") end if detectBlock false then print("false") end
if turtle.detect() then print("true") end if not turtle.detect() then print("false") end
Posted 16 September 2012 - 01:48 AM
Posted 16 September 2012 - 02:27 AM
Posted 16 September 2012 - 08:18 AM
if turtle.detect() then print("true") else print("false") end
0 members, 1 guests, 0 anonymous users