check how many boolean values are true c# code example Example: how to check if bool is true c# if (theBool) { //what to do }