Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Namespace:
?
System.Collections
Assembly:
?
mscorlib (in mscorlib.dll)
Syntax
| JavaScript |
|---|
function compare(x, y); |
Return Value
Value Condition Less than zero x is less than y. Zero x equals y. Greater than zero x is greater than y.
Exceptions
See Also