Comparison operators
To compare two values, use these operators:
Operators | Function |
---|---|
==
|
Equality |
!=
|
Inequality |
>
|
Greater Than |
>=
|
Greater or Equal |
<
|
Less Than |
<=
|
Less or Equal |
All operators return a Boolean value and they work with int
, double
, and string
values. Equality and inequality operators work with
Boolean values, too.