[get-first-value]
get-first-value is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Returns the first non-null value produced by candidate child nodes.
- Returns: Resolves to the first non-null value produced by the candidate child nodes
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
| any node name | lambda | yes | Candidate value source evaluated until the first non-null value is produced. Can be repeated. |
Guide: How to use [get-first-value]
JSON declaration
This is the complete declaration of get-first-value, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "get-first-value",
"description": "Returns the first non-null value produced by candidate child nodes",
"signature": {
"children": {
"*": {
"type": "lambda",
"description": "Candidate value source evaluated until the first non-null value is produced",
"required": true,
"mode": "ExecutableLambda",
"cardinality": "OneOrMore",
"role": "Operand",
"evaluation": "EvalSelf",
"projection": "Value"
}
},
"output": {
"mode": "Value",
"description": "Resolves to the first non-null value produced by the candidate child nodes"
}
}
}
← get-count |
all core slots | get-name → |