playMaker

Author Topic: Getting the highest number from 3 ints  (Read 1361 times)

Splankton

  • Sr. Member
  • ****
  • Posts: 268
Getting the highest number from 3 ints
« 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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Getting the highest number from 3 ints
« Reply #1 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