I'm trying to compare a group of variables to see which one is larger and whether or not one of them equal each other. I realise you can use an if elseif chain but is there a better way to do this?
✓ ANSWER ACCEPTED
How to organize variables from greatest to least?[SOLVED]
1 answer
✓ Accepted answer
Simple. Use table.sort(table). Very easy :D!
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Can you give an example data set, and what you want the results to be?
int1=3 int2=2 int3=64 int4=10. Basically, I want to arrange these in order from least to greatest or greatest to least.
Without using an if elseif chain
Couldn't you just create a table and sort it?
Didnt think of that, thanks.