Jump to content




Comparing slots?


  • This topic is locked This topic is locked
5 replies to this topic

#1 Apfeldstrudel

  • Members
  • 161 posts

Posted 06 June 2013 - 09: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

#2 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 06 June 2013 - 10:16 AM

turtle.compareTo(destinationSlot)

#3 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 06 June 2013 - 10:32 AM

function turtle.compareSlots(s1,s2)
turtle.select(s1)
return turtle.compareTo(s2)
end

#4 Apfeldstrudel

  • Members
  • 161 posts

Posted 10 June 2013 - 09:06 AM

Oh, sorry- i thought that compared with the block in front

#5 JJRcop

  • Members
  • 131 posts

Posted 10 June 2013 - 02:02 PM

This may help you in the future.
http://www.computerc...ki/Turtle_(API)

#6 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 10 June 2013 - 03:19 PM

Locked.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users