[get-count]

get-count is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Returns the number of matching nodes.

  • Value (node-list), required: Expression selecting the nodes to count
  • Returns: Resolves to the number of nodes matched by the expression

Guide: How to use [get-count]

JSON declaration

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

JSON declaration
{
  "name": "get-count",
  "description": "Returns the number of matching nodes",
  "signature": {
    "input": {
      "kind": "node-list",
      "description": "Expression selecting the nodes to count",
      "required": true,
      "mode": "Expression"
    },
    "output": {
      "mode": "Value",
      "kind": "number",
      "description": "Resolves to the number of nodes matched by the expression"
    }
  }
}

← get-context all core slots get-first-value →