Operators in monitor conditions
In monitor conditions, you can use these operators:
- Comparison operators
- Arithmetic operators
This table shows the comparison operators per data type:
Attribute Data Type | Operator | Description |
---|---|---|
All attribute types (in Attribute existence condition) | Exists | True if attribute has a value. |
Does Not Exist | True if attribute has no value. | |
Boolean | = | True if values match. |
<> | True if values do not match. | |
String | = | True if strings match (case sensitive). |
<> | True if strings do not match (case sensitive). | |
starts with | True if the attribute starts with the specified string value. | |
does not start with | True if the attribute does not start with the specified string value. | |
contains | True if the attribute contains the specified string value. | |
does not contain | True if the attribute does not contain the specified string value. | |
ends with | True if the attribute ends with the specified string value. | |
does not end with | True if the attribute does end with the specified string value. | |
in set | True if the attribute is equal to one of the values that are specified in the Set. Set is a list of string values separated by commas. | |
not in set | True if the attribute is not equal to any of the values from the set. Set is a list of string values separated by commas. | |
in codes | True if the attribute is equal to one of the codes that are selected from a specified codelist. | |
not in codes | True if the attribute is not equal to any of the values that are selected from a specified codelist. | |
Numeric, Duration | = | Equals |
< | Less than | |
<= | Less than or equal | |
> | Greater than | |
>= | Greater than or equal | |
<> | Does not equal | |
Numeric | between | True if the value of the attribute is between two specified numeric values. This operator can be used in Attribute Value Comparison condition. |
DateAndTime (in Date/Time Check Comparison) | before | Before |
after | After | |
DateAndTime, Date | = | Equals |
<> | Does not equal | |
< | Before | |
<= | Before or equal to | |
> | After | |
>= | After or equal to | |
between | True if the attribute value is between two specified values. This operator can be used in Attribute Value Comparison condition |
This table shows the arithmetic operators:
Attribute Data Type | Operator | Calculation |
---|---|---|
Numeric | + | Addition |
- | Subtraction | |
* | Multiplication | |
/ | Division | |
DateAndTime, Date | + | Time in the future relative to attribute value |
- | Time in the past relative to attribute value |