# Take Greatest of Array

**URL:** <https://forum.kirupa.com/t/take-greatest-of-array/45795>\
**Category:** flash\
**Created:** [March 18, 2004, 3:48am UTC](https://forum.kirupa.com/t/take-greatest-of-array/45795 "2004-03-18T03:48:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattJakel](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@MattJakel](https://forum.kirupa.com/u/MattJakel)\
**Post date:** [March 18, 2004, 3:48am UTC](https://forum.kirupa.com/t/take-greatest-of-array/45795/1 "2004-03-18T03:48:58Z")

</div>

Is there an easy way to return the greatest term of a 4-term array and if the greatest ones are equal return the ones that are equal? I currently have a function that does it in a really complicated way so it’s not urgent or anything, but I’d just like to know how to do it for future reference.

Thanks,  
Matt
