---
library: "bootstrap"
slug: "Branch"
name: "Branch"
ref: "Branch#b4aa"
hash: "sema:Branch#mh:SHA-256:b4aa8694de2b0da0d33b87e2ad99d1d64741a8d67437ab400a829f566f2ce80d"
type: "Primitives"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Branch"
---

# Branch

Conditional flow

Infrastructure · Primitives

## Mechanism

Conditional fork: if C then A else B. Exactly one arm runs. Distinct from a [Gate](https://semahash.org/vocabularies/bootstrap/patterns/Gate.md), which decides whether a single payload is admitted: a Branch dispatches to alternative continuations, both of which are defined.

## Where this came from

—

## Builds on

- [Gate](https://semahash.org/vocabularies/bootstrap/patterns/Gate.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Branch#b4aa
- Hash: sema:Branch#mh:SHA-256:b4aa8694de2b0da0d33b87e2ad99d1d64741a8d67437ab400a829f566f2ce80d

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Branch
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Branch.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
