[set-name]

set-name is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Sets the name of matching nodes.

  • Value (node-list,single-object), required: Expression selecting the node or nodes whose name should be changed

Arguments

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

Argument Type Required Description
any node name string no Single source child evaluated to a string; the resolved value becomes the new node name. Omit to set the name to null.

Guide: How to use [set-name]

JSON declaration

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

JSON declaration
{
  "name": "set-name",
  "description": "Sets the name of matching nodes",
  "signature": {
    "input": {
      "kind": "node-list,single-object",
      "description": "Expression selecting the node or nodes whose name should be changed",
      "required": true,
      "mode": "Expression"
    },
    "children": {
      "*": {
        "type": "string",
        "kind": "text",
        "description": "Single source child evaluated to a string; the resolved value becomes the new node name. Omit to set the name to null.",
        "required": false,
        "mode": "ExecutableLambda",
        "cardinality": "ZeroOrOne",
        "role": "SourceExpression",
        "evaluation": "EvalSelf",
        "projection": "Value"
      }
    }
  }
}

← semaphore all core slots set-value →