Operand data types and operator compatibility
The various operands that are available in conditions are based on a range of data types. All parts of a condition — LHS operand, operator, and RHS operand — must be based on the same data type.
The following table lists and describes all comparison operators that are available for selection in conditions and specifies the operand data types that each operator supports.
Operator | Operand data type | Expression returns TRUE if... |
---|---|---|
after | Date | the date property of the LHS operand is chronologically after the date specified by the RHS operand |
before | Date | the date property of the LHS operand is chronologically before the date specified by the RHS operand |
between |
| the LHS operand value falls within the range defined by two RHS operands |
contains |
| the LHS operand contains the string defined by the RHS operand |
contains (case sensitive) |
| the LHS operand contains the case-sensitive string defined by the RHS operand |
count between | not relevant (cardinality condition) | the number of occurrences of the configuration object falls within the range defined by two RHS operands |
count does not equal | not relevant (cardinality condition) | the number of occurrences of the configuration object specified in the LHS operand does not equal the value defined by the RHS operand |
count equals | not relevant (cardinality condition) | the number of occurrences of the configuration object specified in the LHS operand equals the value defined by the RHS operand |
count greater than | not relevant (cardinality condition) | the number of occurrences of the configuration object specified in the LHS operand is greater than the value defined by the RHS operand |
count greater than or equal to | not relevant (cardinality condition) | the number of occurrences of the configuration object in the LHS operand is greater than or equal to the value defined by the RHS operand |
count is not one of | not relevant (cardinality condition) | the number of occurrences of the configuration object specified in the LHS operand is not one of the values defined by the RHS operand |
count is one of | not relevant (cardinality condition) | the number of occurrences of the configuration object specified in the LHS operand is one of the values defined by the RHS operand |
count less than | not relevant (cardinality condition) | the number of occurrences of the configuration object specified in the LHS operand is less than the value defined by the RHS operand |
count less than or equal to | not relevant (cardinality condition) | the number of occurrences of the configuration object specified in the LHS operand is less than or equal to the value defined by the RHS operand |
does not contain |
| the LHS operand does not contain the string defined by the RHS operand |
does not contain (case sensitive) |
| the LHS operand does not contain the case-sensitive string defined by the RHS operand |
does not end with |
| the LHS operand does not end with the string defined by the RHS operand |
does not end with (case sensitive) |
| the LHS operand does not end with the case-sensitive string defined by the RHS operand |
does not equal | all data types | the LHS operand does not equal the string or number defined by the RHS operand |
does not equal (case sensitive) |
| the LHS operand does not equal the case-sensitive string defined by the RHS operand |
does not exist | not relevant (cardinality condition) | the configuration object specified in the LHS operand is not present (the number of occurrences equals zero) |
does not have any flag | UNIX Permission | the LHS operand does not have any flag matching any of the multiple UNIX permissions defined by the RHS operand |
does not have flag | UNIX Permission | the LHS operand does not have a flag matching the UNIX permission defined by the RHS operand |
does not match |
| the LHS operand does not match the string defined by the RHS operand |
does not match mask | FilePermission ACE | the LHS operand does not match the mask defined by the RHS operand |
does not start with |
| the LHS operand does not start with the string defined by the RHS operand |
does not start with (case sensitive) |
| the LHS operand does not start with the case-sensitive string defined by the RHS operand |
ends with |
| the LHS operand ends with the string defined by the RHS operand |
ends with (case sensitive) |
| the LHS operand ends with the case-sensitive string defined by the RHS operand |
equals | all data types | the LHS operand equals the string or number defined by the RHS operand |
equals (case sensitive) |
| the LHS operand equals the case-sensitive string defined by the RHS operand |
exists | not relevant (cardinality condition) | the configuration object specified in the LHS operand is present at least once (the number of occurrences is one or more) |
greater than |
| the LHS operand value is greater than the value defined by the RHS operand |
greater than or equal to |
| the LHS operand value is greater than or equal to the value defined by the RHS operand |
has ACE matching mask |
| the LHS operand has an ACE mask matching the one defined by the RHS operand |
has all flags | UNIX Permission | the LHS operand does not have a flag matching the UNIX permission defined by the RHS operand |
has any flag | UNIX Permission | the LHS operand has any flag matching the UNIX permission defined by the RHS operand |
has flag | UNIX Permission | the LHS operand have a flag matching the UNIX permission defined by the RHS operand |
has no ACE matching mask |
| the LHS operand has no ACE mask matching the one defined by the RHS operand |
has no flags | UNIX Permission | the LHS operand has no flags matching the UNIX permission defined by the RHS operand |
has only ACEs matching masks |
| the LHS operand has only ACE masks matching the ones defined by the RHS operand |
instance of | String | the LHS operand has an instance of the string defined by the RHS operand |
is not one of | all data types | the LHS operand is not one of the items defined by the RHS operand |
is not substring of |
| the LHS operand is not a substring of the string defined by the RHS operand |
is not substring of (case sensitive) |
| the LHS operand is not a case sensitive substring of the string defined by the RHS operand |
is one of | all data types | the LHS operand is one of the items defined by the RHS operand |
is substring of |
| the LHS operand is a substring of the string defined by the RHS operand |
is substring of (case sensitive) |
| the LHS operand is a case sensitive substring of the string defined by the RHS operand |
less than |
| the LHS operand value is less than the value defined by the RHS operand |
less than or equal to |
| the LHS operand value is less than or equal to the value defined by the RHS operand |
matches |
| the LHS operand matches the string defined by the RHS operand. The matches operator evaluates regex expressions compatible with the Java implementation of regex. |
matches mask | FilePermission ACE | the LHS operand matches the ACE file permission defined by the RHS operand |
newer than days | Date | the date property of the LHS operand is chronologically newer than the number of days specified by the RHS operand |
not instance of | String | the LHS operand is not an instance of the string defined by the RHS operand |
older than days | Date | the date property of the LHS operand is chronologically older than the number of days specified by the RHS operand |
starts with |
| the LHS operand starts with the string defined by the RHS operand |
starts with(case sensitive) |
| the LHS operand starts with the case sensitive string defined by the RHS operand |
Comments
Log in or register to comment.