Operators for use in auto-enroll rules
You can use the following operators to write selectors for auto-enroll rules.
Comparison operators
Comparison operators are binary operators that take the following form:
{expression 1} {operator} {expression 2}
Operator | Alternative spellings | Description |
---|---|---|
|
|
Tests if the property value is equal to the provided value. |
|
|
Tests if the property value is not equal to the provided value. |
|
|
Tests if the property value is less than or equal to the provided value. |
|
|
Tests if the property value is less than the provided value. |
|
|
Tests if the property value is greater than or equal to the provided value. |
|
|
Tests if the property value is greater than the provided value. |
|
|
Tests if the property value matches a wildcard expression. |
|
|
Tests if the property value matches a Rust-style regular expression. |
Logical operators
Logical operators can be unary or binary.
Operator | Alternative spellings | Description |
---|---|---|
|
Inverts (negates) the operators or expressions. Examples:
|
|
|
|
Pairs of sub-expressions connected using this operator must both evaluate to true for the full expression to be true. |
|
|
At least one of the sub-expressions connected using this operator must evaluate to true for the full expression to be true. |
|
The expression is true if the property is equal to one of a list of values. Example: |
|
|
Checks the property for existence or presence of value:
Examples:
|
|
|
True if the property exists. Example: |