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