Grab lowest item from list

skippertech

  • Posts: 256
IS there a way to set something to the lowest item from the list. Like if there is 11 and 14, it will take the item in 11 first?

LIBERADO

  • *
  • Posts: 2720
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

sdieters

  • Posts: 2068
if you dont like working with extensions you can easily do it with a loop system.

aBool = boolean attribute
tempActor = actor attribute

for each [item] in (list)
if not aBool < this will make sure it will only happen once in this loop,
~set tempActor to [item] << use the [item] block from the "for each" wrapper
~set aBool to true
otherwise
~if [item] < tempActor,
~~set tempActor to [item]
set aBool to false << now we can use the loop again.

do something with tempActor

this will only work ofcourse if you only add numbers to your list, and the amount of items in your list will be unlimited
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

skippertech

  • Posts: 256
Thanks Guys, Yeah I might try without the extension, only because I feel like Extensions hurt performance.. I could be wrong though haha