JScript  

Comparison Operators

Returns a Boolean value indicating the result of the comparison.

expression1 comparisonoperator expression2

Arguments

expression1
Any expression.
comparisonoperator
Any comparison operator.
expression2
Any expression.

Remarks

When comparing strings, JScript uses the Unicode character value of the string expression.

The following describes 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.

Requirements

Version 1

See Also

Operator Precedence | Operator Summary