CodableAIA Stacksona Company

Workflow Switch

Compares one value to another and selects the next chain link based on deterministic branch rules.

Run tool

Form input

Output JSON


          

Work steps

    Inputs

    NameTypeRequiredDescription
    leftanyNoResolved value to compare
    operatortextNoComparison operator
    rightanyNoComparison value
    valueanyNoValue used with cases array
    casesarrayNoArray of branch cases with operator, compare_to, and next
    default_nexttextNoFallback next step id

    Outputs

    NameTypeDescription
    matchedbooleanMatched
    selected_nexttextSelected next
    workarrayWork

    Sample request

    {
      "left": 5,
      "operator": "greater_than",
      "right": 3,
      "cases": [
        {
          "operator": "greater_than",
          "compare_to": 3,
          "next": "go_high"
        }
      ],
      "default_next": "go_low"
    }