Property Comparison

The propertyComparison condition tests whether a given property matches a comparison to a given value. You can use this to test whether a value is greater than or less than another value (among other operations).

JSON Schema

{
    "title": "Property Comparison",
    "properties": {
        "property": {
            "type": "string",
            "title": "Property Name"
        },
        "comparison": {
            "type": "string",
            "title": "Comparison",
            "enum": [
                "greater than",
                "less than",
                "equals"
            ]
        },
        "value": {
            "type": "string",
            "title": "Value"
        }
    }
}

Example #1

Suppose you wanted to test whether a counter property on a node is greater than 5. You could set up the condition like this:

{
    "type": "propertyComparison",
    "config": {
        "property": "counter",
        "comparison": "greater than",
        "value": 5
    }
}