I am writing a program where i need to check if 2 of these 4 booleans are true. Obviously i can write out every combination in an if statement, which is easy enough for 4 (alltho a pain). However, if the problem has 100 variables, and needs to know if at least 2 are true, now we have a much bigger problem. Is there a simpler solution to this? Is there a module that can do this for me? What if i want at least x to be true?