{
  "node": {
    "id": "block:variant-end",
    "type": "Block",
    "label": "Variant branch end",
    "properties": {
      "id": "variant-end",
      "name": "Variant branch end",
      "kind": "studio",
      "summary": "Selects the active input at the end of a compile-time branch region.",
      "behavior": "Keeps one input path at the end of a statically selected branch region.",
      "ports": [
        {
          "name": "in0",
          "direction": "input",
          "unit": "1",
          "description": "Branch 0; real signal.",
          "shape": [],
          "elementType": "real"
        },
        {
          "name": "in1",
          "direction": "input",
          "unit": "1",
          "description": "Branch 1; real signal.",
          "shape": [],
          "elementType": "real"
        },
        {
          "name": "out0",
          "direction": "output",
          "unit": "1",
          "description": "Branch 0; real signal.",
          "shape": [],
          "elementType": "real"
        }
      ],
      "parameters": [
        {
          "key": "selected",
          "label": "selected",
          "unit": "1",
          "default": 0,
          "description": "Explicit selected in the worked model."
        },
        {
          "key": "count",
          "label": "count",
          "unit": "1",
          "default": 2,
          "description": "Explicit count in the worked model."
        },
        {
          "key": "signal.quantity",
          "label": "signal quantity",
          "unit": "1",
          "default": "dimensionless",
          "description": "Explicit signal quantity in the worked model."
        },
        {
          "key": "signal.shape",
          "label": "signal shape",
          "unit": "1",
          "default": [],
          "description": "Explicit signal shape in the worked model."
        },
        {
          "key": "signal.elementType",
          "label": "signal element Type",
          "unit": "1",
          "default": "real",
          "description": "Explicit signal elementType in the worked model."
        }
      ],
      "equations": [
        "y = configured active input"
      ],
      "example": {
        "title": "Variant branch end — executable model",
        "text": "The first input3 is selected and doubled downstream to6.",
        "url": "https://design.lemonergy.com/cosim.html?example=routing-variant-end",
        "label": "Open Studio example",
        "inputs": [],
        "checks": [
          {
            "port": "Result",
            "label": "Result",
            "atS": 0.2,
            "value": 6,
            "unit": "1",
            "tolerance": 1e-09
          }
        ]
      },
      "limits": [
        "Selection is configured before compilation; inactive paths are omitted rather than dynamically merged."
      ],
      "references": [],
      "referenceNote": "This compiler and software type contract is defined by the documented behavior and executable example; no external research result or full external API parity is claimed.",
      "caseIds": [
        "native-variant-end"
      ],
      "availability": {
        "status": "released",
        "label": "Available in Lemonergy Studio",
        "detail": "The bundled example is available in the production release verified on 28 October 2026. The parameters and examples here are synthetic teaching fixtures, not a characterized cell or a validated operating limit."
      },
      "evidence": [
        "docs/glossary/native-block-verification.json"
      ],
      "sourceRepository": "Lemonergy Studio public contract",
      "sourceRevision": "verification-2026-10-27",
      "type": "variant-end",
      "implementationId": "variant-end",
      "url": "https://lemonergy.com/learn/glossary/blocks/variant-end/",
      "documentationUrl": "https://lemonergy.com/learn/glossary/blocks/variant-end/",
      "sourceFile": "block-library.json",
      "reviewed": "2026-10-27",
      "releaseEvidence": {
        "environment": "production",
        "status": "verified",
        "revision": "e76cadfc203e15eb41f3478d8b1044a5b851953d",
        "verifiedOn": "2026-10-28",
        "exampleUrls": [
          "https://design.lemonergy.com/cosim.html?example=routing-variant-end"
        ]
      }
    }
  },
  "incoming": [
    {
      "id": "edge:usesBlock/native-variant-end/0",
      "type": "usesBlock",
      "source": "workflow:native-variant-end",
      "target": "block:variant-end",
      "properties": {
        "sourceFile": "wiki-blocks.json",
        "position": 0,
        "name": "Variant branch end",
        "type": "variant-end",
        "role": "Keeps one input path at the end of a statically selected branch region.",
        "settings": [
          "Use the block reference for settings and connections.",
          "Bundled example verified on the production release of 28 October 2026."
        ]
      }
    }
  ],
  "outgoing": [],
  "neighbors": [
    {
      "id": "workflow:native-variant-end",
      "type": "Workflow",
      "label": "Variant branch end — executable model",
      "properties": {
        "id": "native-variant-end",
        "title": "Variant branch end — executable model",
        "kind": "studio",
        "summary": "Selects the active input at the end of a compile-time branch region.",
        "steps": [
          "Review the interface, units and model limits.",
          "Open the Studio example and run its bundled model.",
          "Compare outputs with the numerical checks; change one input and run again."
        ],
        "example": "The first input3 is selected and doubled downstream to6.",
        "observe": "Inspect the output channels and checks on the block reference page.",
        "limits": "Selection is configured before compilation; inactive paths are omitted rather than dynamically merged.",
        "url": "https://design.lemonergy.com/cosim.html?example=routing-variant-end",
        "label": "Open Studio example",
        "evidence": [
          "docs/glossary/native-block-verification.json"
        ]
      }
    }
  ]
}
