[eq]

eq is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Returns true if two operands are equal.

  • Returns: Resolves to true if the operands are equal

Arguments

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

Argument Type Required Description
any node name object yes Operand evaluated before comparison.

Guide: How to use [eq]

JSON declaration

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

JSON declaration
{
  "name": "eq",
  "description": "Returns true if two operands are equal",
  "signature": {
    "children": {
      "*": {
        "type": "object",
        "description": "Operand evaluated before comparison",
        "required": true,
        "mode": "ExecutableLambda",
        "cardinality": "ExactlyTwo",
        "role": "OperandPaired",
        "evaluation": "EvalSelf",
        "projection": "Value"
      }
    },
    "output": {
      "mode": "Value",
      "kind": "boolean",
      "description": "Resolves to true if the operands are equal"
    }
  }
}

← else-if all core slots eval →