playMaker

Author Topic: Check multiple variable: how to find out the greatest value [SOLVED]  (Read 1900 times)

Sly

  • Full Member
  • ***
  • Posts: 123
Hello,

I was wondering if there is a way to check multiple variable to see which one has the greatest value?

For now I can compare each one, but because I could have 10 float, it could be very complicated compare each one and find out who has the greatest value.

Thanks
« Last Edit: January 21, 2015, 08:47:09 AM by Sly »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Check multiple variable: how to find out the greatest value
« Reply #1 on: January 20, 2015, 02:42:02 PM »
Use an array and sort it, ArrayMaker handles this well.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Sly

  • Full Member
  • ***
  • Posts: 123
Re: Check multiple variable: how to find out the greatest value [SOLVED]
« Reply #2 on: January 21, 2015, 08:46:47 AM »
Hello Lane,

As usual, you're right. ;)
It's perfect for this.
I never notice it was possible to check the minimum value or the maximum.
Got it!

Thanks!