The relational operators are used to determine the equality, inequality, or relative values of their left and right operands.
The left and right operands must be expressions of the same type and the type must be allowed for that operator. You can use each relational operator on
decimal,
float,
integer, and
string types (see
Primitive and string types). On
boolean types, you can use the
= and
!= relational operators.