Skip to content

Comparison Operators

Comparison operators check numeric values and equality.

Greater Than

__value__ of **Object** is greater than 100

Interactive 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 60

Interactive Example

Policy Rule
Test Data (JSON)

Less Than

__age__ of **Child** is less than 13

Interactive 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 30

Equal 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

OperatorAliases
is greater than
is greater than or equal tois at least
is less than
is less than or equal tois no more than
is equal tois the same as
is not equal tois not the same as