leftanyUsually a template.
operatorstringeqOne of the nine below.
rightanyWhat to compare against. Unused by exists and empty.
The operators
| Operator | True when |
|---|---|
eq · neq | Equal, or not. |
contains | The left contains the right. |
gt · gte · lt · lte | Ordered comparisons. |
exists | The left is there at all. |
empty | The left is empty. |
An unknown operator is refused when the workflow is saved.
Both branches are required
edges: [
{ from: "check", to: "urgent", branch: "true" },
{ from: "check", to: "normal", branch: "false" },
]edges = [
{"from": "check", "to": "urgent", "branch": "true"},
{"from": "check", "to": "normal", "branch": "false"},
]A missing branch is refused, not defaulted
A condition with only a true edge would end the run, without a word, whenever the answer was false. Requiring both means every path is one somebody wrote.
Output
{{steps.check.output.result}} // true or false
{{steps.check.output.left}}
{{steps.check.output.operator}}"{{steps.check.output.result}}" # True or False
"{{steps.check.output.left}}"
"{{steps.check.output.operator}}"Branch on a schema, not on prose
A model step with a schema gives a boolean. Testing whether free text contains a word breaks the first time the model writes « not urgent ».