This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Apfeldstrudel's profile picture

Comparing slots?

Started by Apfeldstrudel, 06 June 2013 - 08:56 AM
Apfeldstrudel #1
Posted 06 June 2013 - 10:56 AM
Hello! i was just wondering, a function to compare two slots, for example- turtle.compareSlots(1,16) returns true if they match

Would be awesome
Cloudy #2
Posted 06 June 2013 - 11:16 AM
turtle.compareTo(destinationSlot)
PixelToast #3
Posted 06 June 2013 - 11:32 AM
function turtle.compareSlots(s1,s2)
turtle.select(s1)
return turtle.compareTo(s2)
end
Apfeldstrudel #4
Posted 10 June 2013 - 10:06 AM
Oh, sorry- i thought that compared with the block in front
JJRcop #5
Posted 10 June 2013 - 03:02 PM
This may help you in the future.
http://www.computercraft.info/wiki/Turtle_(API)
Lyqyd #6
Posted 10 June 2013 - 04:19 PM
Locked.