Number Compare Condition
Triggers when a number field value has the defined value. It can be useful to check prices, amounts of products sold, or users logged in (if tracked in number fields).
Specific Definitions
Select the condition and provide the values.
Property | Value |
kind | NumberCompareCondition |
fieldpath | layerId.fieldId Details on accessing field values, specifically fieldpath starts lowercase Supports JSON path syntax which you can test here: https://jsonpath.com. |
value | Provide a number value, whole numbers or decimals to check against. |
mode | Select the mode, which mirrors mathematical expressions.
Enum: "LessThan" "LessThanEqual" "Equal" "GreaterThanEqual" "GreaterThan" |
Where 100 Products Sold?
{
"kind": "NumberCompareCondition",
"value": 20,
"fieldPath": "products.amountSelled",
"mode": "GreaterThanEqual"
}