Condition
Selects exactly one control path while passing the input value through.
Condition#
Chooses exactly one control route while returning the tested value and boolean result. Use it to gate branch execution; its data output alone does not distinguish the chosen branch.
Sockets and configuration#
- exec (control): optional upstream execution gate.
- value (any, required): candidate value.
- true, false (control): exactly one is explicitly emitted.
- value (any): unchanged input. passed (boolean): comparison result.
- operator: truthy (default), equals, greater, less or contains.
- compare: comparison value; new instances default to 0 and accept any JSON shape.
Comparison semantics#
truthy uses JavaScript Boolean(value). equals uses strict identity/type equality, not deep object comparison. greater/less convert both operands with Number before comparing. contains converts both operands to strings and uses case-sensitive substring matching; it does not search array membership as structured values.
Example#
For a numeric threshold, set operator greater and compare 80. Wire a reading's number to value, True to the alert's Execute, and False to the normal branch's Execute. Input 80 selects False; 80.1 selects True. Wire the reading data separately to any branch needing it.
The asset logs the boolean outcome only and makes no external calls or state/secret changes. A missing required value fails validation. Unchosen control paths skip; a consumer with only a data wire can still run independently of True/False. Do not create an AND join by wiring both routes into one control input: incoming control routes use OR semantics. There is no next or error output.
Catalog identity#
| Field | Value |
|---|---|
| Source key | app.core.core.condition |
| Kind | node |
| Family | app-core |
| Pack | See library discovery |
Integration guide · Browse the catalog
Inputs#
| Socket ID | Label | Type | Required | Meaning |
|---|---|---|---|---|
exec | Execute | control | No | |
value | Value | any | Yes |
Outputs#
| Socket ID | Label | Type | Required | Meaning |
|---|---|---|---|---|
true | True | control | No | |
false | False | control | No | |
value | Value | any | No | |
passed | Passed | boolean | No |
Configuration schema#
{
"type": "object",
"properties": {
"operator": {
"type": "string",
"title": "Operator",
"enum": [
"truthy",
"equals",
"greater",
"less",
"contains"
],
"default": "truthy"
},
"compare": {
"title": "Compare with",
"default": 0
}
}
}Source and installed versions#
This reference describes the maintained source catalog snapshot, not a live export of your installation. Published definitions use immutable versions; installed graphs retain their exact pins. Discover and read the installed definition and selected version before wiring it. See versioning, connections and integration setup.
Source provenance
Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.
../OpenNodeFlow-Library/work/catalog-all.mjs../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjsshared/seed.tsshared/storage-library.tsshared/variable-library.tsshared/control-flow.tsshared/remote-routes.tsserver/runtime-library.tsshared/error-library.tsshared/storage-model.tsshared/builtin-documentation.ts