playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Getting the highest number from 3 ints
« previous
next »
Print
Pages: [
1
]
Go Down
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?
Logged
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
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Getting the highest number from 3 ints