WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Go - Relational Operators


Relational Operators

Assume variable A holds 10 and variable B holds 20, then
Operator Description Example
== It tests if the values of two operands are same or no longer; if yes, the situation will become true. (A == B) is not real.
!= It tests if the values of two operands are same or now not; if the values aren't identical, then the situation becomes actual. (A != B) is proper.
> It assessments if the value of left operand is more than the fee of proper operand; if sure, the condition turns into genuine. (A > B) isn't always genuine.
< It exams if the value of left operand is less than the cost of the right operand; if sure, the circumstance will become true. (A < B) is real.
>= It assessments if the price of the left operand is more than or equal to the fee of the proper operand; if yes, the condition turns into genuine. (A >= B) is not genuine.
<= It checks if the fee of left operand is less than or same to the fee of right operand; if sure, the condition will become real. (A <= B) is authentic.