Boolean data types are intended to symbolize binary values, usually denoted by `1`

and `0`

, `true`

and `false`

, or even `YES`

and `NO`

. Boolean types are used to represent truth logic, which is based on Boolean algebra. This is just a way of saying that Boolean values are used in conditional statements, such as `if`

or `while`

, to evaluate logic or repeat an execution conditionally.

Equality operations include any operations that compare the value of any two entities. The equality operators are:

`==`

implies equal to`!=`

implies not equal to

Relational operations include any operations that test a relation between two entities. The relational operators are:

`>`

implies greater than`>=`

implies greater than or equal to`<`

implies less than`<=`

implies less than ...

Start Free Trial

No credit card required