boolean in C#
The bool type keyword is an alias for the .NET System Boolean structure type that represents a Boolean value, which can be either true or false . To perform logical operations with values of the bool type, use Boolean logical operators. The bool type is the result type of comparison and equality operators. ``` bool b = true; Console.WriteLine(b ? "Checked" : "Not checked"); // output: Checked Console.WriteLine(false ? "Checked" : "Not checked"); // output: Not checked ```