
Is there efficient way to compare integers and return the highest one without using many if statements? I'm writing a script to give free animal pictures and I need to know what one is the most popular. There will be five integers, horse, bird, dog, cat, and mouse. The value of the integers will be determined by the number of times they're selected (I have this part all figured out), so I just need an efficient way to compare the five and return the one selected most often. Is it possible to use something like LIST_STAT_MAX ? Thank you for help.