I have a list of boolean values, what is the most efficient way to check if one of the boolean is true and all others are false?
For example, I have a array of 100 boolean values, how can I check if 1 boolean is true and all other booleans are false.