Skip to content
OpenNodeFlow.DocsOpen beta ↗
Agent guide ↗
Docs/Library asset reference

Condition

Selects exactly one control path while passing the input value through.

23 Oct 2026 · 2 min read
Markdown ↗JSON ↗

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#

FieldValue
Source keyapp.core.core.condition
Kindnode
Familyapp-core
PackSee library discovery

Integration guide · Browse the catalog

Inputs#

Socket IDLabelTypeRequiredMeaning
execExecutecontrolNo
valueValueanyYes

Outputs#

Socket IDLabelTypeRequiredMeaning
trueTruecontrolNo
falseFalsecontrolNo
valueValueanyNo
passedPassedbooleanNo

Configuration schema#

json
{
  "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.mjs
  • shared/seed.ts
  • shared/storage-library.ts
  • shared/variable-library.ts
  • shared/control-flow.ts
  • shared/remote-routes.ts
  • server/runtime-library.ts
  • shared/error-library.ts
  • shared/storage-model.ts
  • shared/builtin-documentation.ts
Type to search the documentation.
↑ ↓ to navigate · Enter to openAgent map ↗