The
has operator is used in logical expressions to test whether a repeating item is within a set of values or ranges. The item can be numeric or alphanumeric. A range of values is separated by a colon, for example
1:5. Elements of a list of values or ranges are separated by commas, for example
1, 3:5, 7.
This function is similar to the
in operator except that it works on repeating items. It thus tests whether a group of items contains certain values.