{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-logic-branch-boolean",
  "title": "Boolean Branch",
  "section": "Library asset reference",
  "description": "Route a strict boolean socket to exactly one of true or false while optionally passing through dynamic JSON value. No configuration or truthiness conversion. Example: condition false/value 0 → passed false,value 0, only false emitted. next ",
  "kind": "node",
  "url": "/wiki/reference-logic-branch-boolean/",
  "markdown": "/wiki/reference-logic-branch-boolean/index.md",
  "json": "/wiki/reference-logic-branch-boolean/index.json",
  "headings": [
    {
      "id": "audited-socket-contract-21-october-2026",
      "title": "Audited socket contract (21 October 2026)",
      "depth": 2
    },
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "outputs",
      "title": "Outputs",
      "depth": 2
    },
    {
      "id": "configuration-schema",
      "title": "Configuration schema",
      "depth": 2
    },
    {
      "id": "source-and-installed-versions",
      "title": "Source and installed versions",
      "depth": 2
    }
  ],
  "sources": [
    "../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"
  ],
  "family": "logic",
  "contract": {
    "key": "logic.branch.boolean",
    "slug": "logic-branch-boolean",
    "name": "Boolean Branch",
    "kind": "node",
    "family": "logic",
    "packId": null,
    "category": "Logic",
    "description": "Route a strict boolean socket to exactly one of true or false while optionally passing through dynamic JSON value. No configuration or truthiness conversion. Example: condition false/value 0 → passed false,value 0, only false emitted. next is never selected. Connect the selected control output to each branch Execute socket; a data wire alone is not gating. Multiple incoming control routes are OR, not AND. A value absent on input stays absent on output. Selected data is bounded.",
    "inputs": [
      {
        "id": "exec",
        "name": "Exec",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "condition",
        "name": "Condition",
        "type": "boolean",
        "typeName": "Boolean",
        "required": true
      },
      {
        "id": "value",
        "name": "Value",
        "type": "def_c5fc8fea11ea",
        "typeName": "Named contract",
        "typeVersion": 1,
        "required": false
      }
    ],
    "outputs": [
      {
        "id": "next",
        "name": "Next",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "true",
        "name": "True",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "false",
        "name": "False",
        "type": "control",
        "typeName": "Control",
        "required": false
      },
      {
        "id": "passed",
        "name": "Passed",
        "type": "boolean",
        "typeName": "Boolean",
        "required": true
      },
      {
        "id": "value",
        "name": "Value",
        "type": "def_c5fc8fea11ea",
        "typeName": "Named contract",
        "typeVersion": 1,
        "required": false
      },
      {
        "id": "error",
        "name": "Error",
        "type": "control",
        "typeName": "Control",
        "required": false
      }
    ],
    "configSchema": {
      "type": "object",
      "properties": {},
      "additionalProperties": false
    },
    "documentation": "# Boolean Branch\n\nRoute a strict boolean socket to exactly one of true or false while optionally passing through dynamic JSON value. No configuration or truthiness conversion. Example: condition false/value 0 → passed false,value 0, only false emitted. next is never selected. Connect the selected control output to each branch Execute socket; a data wire alone is not gating. Multiple incoming control routes are OR, not AND. A value absent on input stays absent on output. Selected data is bounded.\n\nPure transformation: no I/O, secrets, logging or persistent state. No account setup is required. Errors throw to the error control path. Runtime validates inputs, configuration and returned data against the pinned contracts. Configuration defaults stated here are also implemented in code. Data wires alone do not choose execution paths. Existing JSON Value/List sockets are explicit dynamic JSON boundaries, not provider entity schemas.\n\nInputs: `condition` (boolean, required), `value` (def_c5fc8fea11ea, optional). Outputs: `passed` (boolean, required), `value` (def_c5fc8fea11ea, optional).\n\nUnless a stricter limit is stated, JSON processing accepts at most 1 MiB UTF-8, 20000 values, depth 64, 10000 array items and 200000 UTF-16 code units per string/key. Invalid values fail without echoing payloads. JSON cannot transport undefined, cycles, BigInt, NaN or Infinity. Primitive text operations use the same 200000 code-unit bound. All type/executor dependencies are exact immutable pins; reading Latest help never upgrades graph instances.\n\n## Audited socket contract (21 October 2026)\n\nInputs:\n- `condition`: `boolean`; required.\n- `value`: `def_c5fc8fea11ea`; optional (absent stays absent).\n\nOutputs:\n- `passed`: `boolean`; required.\n- `value`: `def_c5fc8fea11ea`; optional (absent stays absent).\n\nConfiguration:\nNo asset-specific configuration.\n\nKnown provider records and list elements have structural schemas. Explicit dynamic payloads, selected query results and provider extensions retain the recursive JSON Value vocabulary; they do not imply a known provider entity. Null is distinct from omission. Runtime validates the exact selected immutable type version; reading newer documentation never repins existing graphs. This audit used synthetic fixtures/local mocks and does not establish live provider authorization or delivery.",
    "runtime": "javascript",
    "tags": [
      "library-expansion",
      "logic",
      "node",
      "pure"
    ],
    "source": "baseline-catalog"
  }
}
