I have a set of five boolean values. If more than one of these are true I want to excecute a particular function. What is the most elegant way you can think of that would al
I would just cast them to ints and sum.
Unless you're in a super tight inner loop, that has the benefit of being easy to understand.