Comparison Operators Flashcards
==
If the values of two operands are equal, then the condition becomes true.
Ex: 10 == 20 is not true.
!=
If the values of two operands are not equal, then the condition becomes true.
Ex: 10 != 20 is true.
<>
If values of two operands are not equal, then the condition becomes true.
Ex: 10 <> 20 is true.
>
If the value of the left operand is greater than the right operand, the condition becomes true.
Ex: 10 > 20 is not true.
(less than symbol)
If the value of the left operand is lesser than the right operand, the condition is true.
Ex: 10 < 20 is true.
> =
If the value of the left operand is greater than or equal to the right operand, the condition is true.
Ex: 10 >= 20 is not true.
<=
If the value of the left operand is lesser than or equal to the right operand, the condition is true.
Ex: 10 <= 20 is true.