Skip to content

Empty Operators

Empty operators check whether a value is present or absent.

Is Empty

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

__notes__ of **Order** is empty

Interactive Example

Policy Rule
Test Data (JSON)

Is Not Empty

Checks if a value is present and non-empty:

__email__ of **User** is not empty

Interactive Example

Policy Rule
Test Data (JSON)

What Counts as Empty

Valueis emptyis not empty
"" (empty string)truefalse
nulltruefalse
missing keytruefalse
"hello"falsetrue
0falsetrue
falsefalsetrue

Common Pattern: Required Fields

Use is not empty to enforce required fields:

Interactive Example

Policy Rule
Test Data (JSON)