How to use the highest stat

So let’s say I want to include a line of code that goes something like *if (statA or statB or statC) is the highest, goto ‘1’, ‘2’, or ‘3’ respectively?

In context, ‘when you open the door you find (whoever has the highest stat) standing in front of you!’

If you only have 3 variables you’re checking, I would think it would go:

*if ((A > B) and (A > C))
   *goto scenario A

and etc.! I’m not sure how you would do it with more than 3 in a simple, easy way though! :disappointed_relieved:

Hmm Yupp it will be more than three variables

I use the method in this post from @RETowers, it works nice and smoothly.