ValueModelCondition
A condition band: when the signal passes the test, result replaces the expression.
- fieldType: stringrequired
What to test: a formula variable, else a dotted path into the signal's data.
- operatorType: stringenumrequired
gte,gt,lt,lte,eqandneqcompare numbers (numeric text and booleans count;neqalso matches when either side isn't a number).contains: the field is a list holdingvalue, or text containing it.eq_string: equal as text.eq_bool: the same truth value (true,1,"true"and"1"are true).valuesgtegtltlteeqneqcontainseq_stringeq_bool - resultType:requiredProperties: 3
What a condition band (or a formula's
defaultResult) gives: a constant, or an expression over the same variables. - value
What the field is tested against.
Examples
{
"field": "pages",
"operator": "gte",
"value": 50,
"result": {
"type": "expression",
"expression": "pages * 1.2"
}
}