# Merge selected branch

Explicit branch coordination; unfinished branches keep running.

Canonical URL: https://opennodeflow.dev/wiki/reference-app-control-flow-def-onf-merge-selected/
JSON reference: https://opennodeflow.dev/wiki/reference-app-control-flow-def-onf-merge-selected/index.json
Source snapshot: 2026-10-23

Pair each branchN control with valueN from that alternative. The first completed selected pair supplies value; absent outputs from other branches do not block it. Multiple eligible pairs use recorded completion order, then branch number. Use a typed merge asset for an exact custom contract. Unfinished branches continue; this operation never cancels or rolls back actions.

## Catalog identity

| Field | Value |
| --- | --- |
| Source key | `app.control-flow.def_onf_merge_selected` |
| Kind | node |
| Family | app-control-flow |
| Pack | See library discovery |

[Integration guide](/wiki/control-flow/) · [Browse the catalog](/wiki/integration-catalog/)

## Inputs

| Socket ID | Label | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `branch1` | branch1 | control | No |  |
| `value1` | value1 | any | No |  |
| `branch2` | branch2 | control | No |  |
| `value2` | value2 | any | No |  |
| `branch3` | branch3 | control | No |  |
| `value3` | value3 | any | No |  |
| `branch4` | branch4 | control | No |  |
| `value4` | value4 | any | No |  |
| `branch5` | branch5 | control | No |  |
| `value5` | value5 | any | No |  |
| `branch6` | branch6 | control | No |  |
| `value6` | value6 | any | No |  |
| `branch7` | branch7 | control | No |  |
| `value7` | value7 | any | No |  |
| `branch8` | branch8 | control | No |  |
| `value8` | value8 | any | No |  |

## Outputs

| Socket ID | Label | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `next` | next | control | No |  |
| `value` | value | any | Yes |  |
| `branch` | branch | number | Yes |  |
| `winnerNodeId` | winnerNodeId | string | Yes |  |

## Configuration schema


```json
{}
```





## 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](/wiki/versioning/), [connections](/wiki/connections/) and [integration setup](/wiki/integration-setup/).

---

## Documentation provenance

- `../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`

This page describes maintained source, not a live inventory or an authorization to perform actions.
