# Boolean Expression

An expression can also evaluate to boolean values, True or False.

If an expression evaluates to a boolean value then it is called a boolean expression.

Valid boolean values

Remember, in C# only True and False are valid boolean values.

1 and 0 are integer values. They are not treated as boolean in C#.

# Example 1

13 == 13 is a boolean expression. It evaluates to the boolean value True.

# Example 2

17 > 99 is a boolean expression. It evaluates to the boolean value False.

# Example 3

98 % 14 == 0 is a boolean expression. It evaluates to the boolean value True.

Last Updated: May 1, 2020, 2:53 AM