A comparison operator is a type of operator which combines two number objects to form a Boolean object.
If one of the objects is not a number, the arguments will be cast to the string type and then compared.
All comparison operators start with is
, was
, has
, or had
, which will collectively be represented here by <comparator>
(for instance, is less than
, was less than
, has less than
, and had less than
would be collectively represented by <comparator>
less than
).
Standard comparison operators are:
See also[]
Phrases (list) | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|