Operators

compared to

Supported By

Syntax

expression compared to expression

Description

The compared to operator evaluates to the comparison of the two given values as strings. The evaluated value will be negative if the first given value is less than the second given value, positive if the first is greater than the second, and zero if the first is equal to the second.

Note

String comparison is case-insensitive. For case-sensitive comparison, use the csstrcmp function.

Synonym

cmp

See Also

<=>