How to easily compare 3 or more integers

I’m creating a voting system for my game, but I need to compare 3 or more integers in order for it to actually work. I haven’t wrote a script yet because I’d thought it would be time consuming to write it down using if statements. Does anyone have a solution?

When in doubt of long chains of if else statements you should be able to find an alternate solution using tables.

For this you can store the votes in a dictionary then “sort” the dictionary to find the key value pair with the highest amount of votes like the below post:

2 Likes