PlayMaker Feedback > Action Requests
Get Largest/Smallest int from array
(1/1)
bkups2003:
Hello.
I have 4 Variables of different values and i need to find the largest of them. Is there an action available to do this instead of making a web of compares? Adding them to an array and finding the index of the largest one sounds like a good way i can know which variable is the largest and what to do with that variable. Is there a way to do this at the moment?
Thanks alot.
escpodgames:
Array sort will arrange the array from lowest to highest - then get 0 and whatever the array count is (-1)
Flying Robot:
http://hutonggames.com/playmakerforum/index.php?topic=5116.0
jeanfabre:
Hi,
and there is ArrayListReverse to reverse the sorting you just did
bye,
Jean
Navigation
[0] Message Index
Go to full version