Finding the highest variable

  • We'll say variables a, b, and c have the values of 1, 2, and 3 respectively. Does anyone have an easier solution for finding which variable has the highest value than using IF's and ">"? That may seem like the easiest solution in this application, but when more than 3 variables start coming into play the lines of IF statements can get pretty long


  • Yes, I'm decent when it comes to creating mathematical formulas, but this one either slips past me or is too complex for me to think of off the top of my head. Could you please elaborate on the array idea?

  • array is a collection of elements that share same data type and same name. elements are distinguished by index. this makes it possible to refer to any element by simply changing index value rather than typing element name. in other words things like searching, sorting etc becomes practical.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

Advertising from our partners