Microsoft JScript
Comparison Operators
Language Reference
Version 1

See Also

Returns a Boolean value indicating the result of the comparison.
expression1 comparisonoperator expression2

The Comparison operator syntax has these parts:

Part Description
expression1 Any expression.
comparisonoperator Any comparison operator.
expression2 Any expression.
When comparing strings, JScript uses the Unicode character value of the string expression.

The following is how the different groups of operators behave depending on the types and values of expression1 and expression2: Relational (<, >, <=, >=)

Equality (==, !=) Identity (===. !==)

These operators behave identically to the equality operators except no type conversion is done, and the types must be the same to be considered equal.