Write a example of comparison operators.
Answers
Answer:
Comparison Operator Name
Symbol
<= less than or equal to
>= greater than or equal to
!~ does not contain
~ string comparison
Comparison operators are those operators that compare values and then return true or false. Some of the comparison operators are as follows:
- Less than ( < )
If the value on the left is less than the value on the right, then this operator returns true otherwise false.
- Greater than ( > )
If the value on the left is greater than the value on the right, then this operator returns true otherwise false.
- Less than or equal to ( < = )
If the value on the left is less than or equal to the value on the right, then this operator returns true otherwise false.