ValueModelCondition

A condition band: when the signal passes the test, result replaces the expression.

  • What to test: a formula variable, else a dotted path into the signal's data.

  • gte, gt, lt, lte, eq and neq compare numbers (numeric text and booleans count; neq also matches when either side isn't a number). contains: the field is a list holding value, or text containing it. eq_string: equal as text. eq_bool: the same truth value (true, 1, "true" and "1" are true).

    values
    gtegtltlteeqneqcontainseq_stringeq_bool
  • What a condition band (or a formula's defaultResult) gives: a constant, or an expression over the same variables.

    Properties: 3
  • What the field is tested against.

Examples
{
  "field": "pages",
  "operator": "gte",
  "value": 50,
  "result": {
    "type": "expression",
    "expression": "pages * 1.2"
  }
}