Skip to content

Empty Operators

Empty operators check whether a value is present or absent.

Checks if a value is empty, null, or missing:

__notes__ of **Order** is empty

Interactive Example

Policy Rule
Test Data (JSON)

Checks if a value is present and non-empty:

__email__ of **User** is not empty

Interactive Example

Policy Rule
Test Data (JSON)
Value is empty is not empty
"" (empty string) true false
null true false
missing key true false
"hello" false true
0 false true
false false true

Use is not empty to enforce required fields:

Interactive Example

Policy Rule
Test Data (JSON)