[while]
while is a core slot, one of the keywords of the Hyperlambda language, in Hyperlambda, the language of Magic Cloud. Repeats execution while a condition is true.
- Scope: provides
while
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
| any node name | lambda | yes | Condition node evaluated for truthiness. |
[.lambda] |
lambda | yes | Executable lambda block. |
Guide: How to use [while]
JSON declaration
This is the complete declaration of while, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "while",
"description": "Repeats execution while a condition is true",
"signature": {
"children": {
"*": {
"type": "lambda",
"kind": "boolean",
"description": "Condition node evaluated for truthiness",
"required": true,
"mode": "ExecutableLambda",
"cardinality": "ExactlyOne",
"role": "Condition",
"evaluation": "EvalSelf",
"projection": "Value"
},
".lambda": {
"type": "lambda",
"description": "Executable lambda block",
"required": true,
"mode": "ExecutableLambda",
"cardinality": "ExactlyOne",
"role": "LambdaBlock",
"evaluation": "EvalBlock",
"projection": "Self"
}
},
"scope": {
"provides": "while"
}
}
}
← vocabulary |
all core slots | whitelist → |