Operators

is not between

Supported By

Syntax

expression is not between expression and expression [[left|right] inclusive|exclusive]

Description

The is not between operator compares the given value on the left to the two given values on the right. If the first given value falls between the second and third, the is not between operator evaluates to false. Otherwise, the is not between operator evaluates to true.

The inclusive, left-inclusive, right-inclusive, and exclusive options specify the is not between operator's behavior when the first value is equal to the second or third. If the first value is equal to the second, is not between will evaluate to false only if inclusive or left-inclusive is specified. If the first value is equal to the third, is not between will evaluate to false only if inclusive or right-inclusive is specified. If none of these options is specified, inclusive is assumed to be the default.

If all given values are integers or numbers, the values will be compared numerically. If all 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

isn't between, not between

See Also

<, <=, >, >=, lt, le, gt, ge, between, increasing, ascending, strcmp, csstrcmp