{
  "$defs": {
    "SelectValueRef": {
      "additionalProperties": false,
      "description": "Choose a numeric value using a stateless predicate.\n\nTrue reads then, false reads else; unknown returns typed absence, never\neither branch. Only the chosen branch's absence propagates. Supports\ncompare, range, in_set, not, all_of, any_of and always_true. Memoryful\npredicates are refused. Window aggregates, live_position and entry_bar values are\nsupported in predicates and branches. Position-dependent values require\na position-scoped consumer such as an exit, stop, target or trail. Bind symbol and\nresolution on children. Usable in arithmetic, offset, rolling statistics,\nwindow aggregate sources, sizing, existing stop/target refs and named values, under\neach consumer's restrictions. History and warmup take the maximum over\npredicate operands and both branches. Equal branch dimensions or a literal\npreserve units; known mismatch warns and yields unknown dimension.",
      "properties": {
        "else": {
          "anyOf": [
            {
              "$ref": "../defs.json#/$defs/ValueRef"
            },
            {
              "type": "number"
            }
          ]
        },
        "kind": {
          "const": "select",
          "default": "select",
          "title": "Kind",
          "type": "string"
        },
        "then": {
          "anyOf": [
            {
              "$ref": "../defs.json#/$defs/ValueRef"
            },
            {
              "type": "number"
            }
          ]
        },
        "when": {
          "$ref": "../defs.json#/$defs/SelectPredicate"
        }
      },
      "required": [
        "when",
        "then",
        "else"
      ],
      "title": "SelectValueRef",
      "type": "object"
    }
  },
  "$ref": "#/$defs/SelectValueRef"
}
