Equality and Relational Operators
Understand how to use the equality and relational operators with the help of an example in this lesson.
We'll cover the following
Equality and relational operators mainly deal with two operands. These operators determine if one operand is greater than, less than, equal to, or not equal to another operand. Furthermore, it checks the equality between two operands using the ==
symbol, not =
symbol.
Coding example: 51
The following example will show you how we can use these operators. Read the comments carefully, because it will clear up your questions about these operators.
Get hands-on with 1200+ tech skills courses.