[default]

default is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Evaluates the default branch inside [switch].

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
any node name lambda yes Default branch body executed by the parent [switch]. Can be repeated.

Constraints

  • ParentMustBe: Parent node must have the listed slot name ([switch])

JSON declaration

This is the complete declaration of default, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "default",
  "description": "Evaluates the default branch inside [switch]",
  "signature": {
    "children": {
      "*": {
        "type": "lambda",
        "description": "Default branch body executed by the parent [switch]",
        "required": true,
        "mode": "ExecutableLambda",
        "cardinality": "OneOrMore",
        "role": "ExecutableBody",
        "evaluation": "EvalSelf",
        "projection": "Self"
      }
    },
    "constraints": [
      {
        "description": "Parent node must have the listed slot name",
        "values": [
          "switch"
        ],
        "kind": "ParentMustBe"
      }
    ]
  }
}

← csv2lambda all core slots else →