Comparison Operators
Comparison operators check numeric values and equality.
Greater Than
__value__ of **Object** is greater than 100Interactive Example
Policy Rule
Test Data (JSON)
Greater Than or Equal To
Also written as is at least:
__score__ of **Student** is greater than or equal to 60__score__ of **Student** is at least 60Interactive Example
Policy Rule
Test Data (JSON)
Less Than
__age__ of **Child** is less than 13Interactive Example
Policy Rule
Test Data (JSON)
Less Than or Equal To
Also written as is no more than:
__weight__ of **Package** is less than or equal to 30__weight__ of **Package** is no more than 30Equal To
Also written as is the same as:
__status__ of **User** is equal to "active"__role__ of **User** is the same as "admin"Works with strings, numbers, and booleans:
Interactive Example
Policy Rule
Test Data (JSON)
Not Equal To
Also written as is not the same as:
__status__ of **User** is not equal to "banned"__role__ of **User** is not the same as "guest"Interactive Example
Policy Rule
Test Data (JSON)
Summary
| Operator | Aliases |
|---|---|
is greater than | — |
is greater than or equal to | is at least |
is less than | — |
is less than or equal to | is no more than |
is equal to | is the same as |
is not equal to | is not the same as |