Equality operators
There are two more operators to learn about in this lesson: the equality operators.
Each of these operators is a binary operator.
Each returns the boolean values true or false:
Depending on whether or not their two operands are equal.
The operators are pictured in Figure 4.
Figure 4. Equality operators.
Operator Description == Returns true if operands are equal. Otherwise returns false. != Returns true if operands are not equal. Otherwise returns false. |