DocsCondition operators
01 / 02

Condition operators

Reference for all condition operators used in mock API rules.

Comparison operators

OperatorDescriptionExample
eqEqualstatus eq "active"
neqNot equaltype neq "admin"
gtGreater thanamount gt 100
gteGreater than or equalcount gte 5
ltLess thanprice lt 50
lteLess than or equalquantity lte 10

String operators

OperatorDescription
starts_withString starts with value
ends_withString ends with value
containsString contains value
matchesMatches regex pattern

Array operators

OperatorDescription
inValue is in array
not_inValue is not in array
is_emptyArray is empty
is_not_emptyArray is not empty

Existence operators

OperatorDescription
existsField exists and is not null
not_existsField doesn't exist or is null
type_isCheck value type (string, number, boolean, array, object)

Compound operators

OperatorDescription
andAll conditions must be true
orAt least one condition must be true
notNegate a condition