Operators

comes before

Supported By

Syntax

expression comes before expression

Description

The comes before operator compares the two given values. If the first value is less than the second, the comes before operator evaluates to true. If the first value is greater than or equal to the second, the comes before operator evaluates to false.

If both given values are integers or numbers, the values will be compared numerically. If both given values are dates, the values will be compared chronologically. Otherwise, the values will be compared as strings.

Note

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

Synonyms

is before, is fewer than, is less than, is smaller than, <

See Also

<=, between