Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Splankton on March 11, 2014, 03:20:00 PM

Title: Getting the highest number from 3 ints
Post by: Splankton on March 11, 2014, 03:20:00 PM
Hi, I need to compare 3 ints and get the highest and send off an event.  IntCompare only compares 2, I've downloaded Jean's IntEquals but its not quite what I'm after.  Is there a quick way instead of going through all the logic of getting the highest int number?
Title: Re: Getting the highest number from 3 ints
Post by: jeanfabre on March 12, 2014, 08:28:55 AM
Hi,

 I would use arrayMaker, put them three ints in an arrayList, sort it and take the first item on that list. Done.

bye,

 Jean