Microsoft® JScript™
Comparison Operators
 Language Reference 
Version 1 

See Also


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

The Comparison operator syntax has these parts:

Part Description
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 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.


© 1997 by Microsoft Corporation. All rights reserved.