while
Control FlowRepeats commands while a condition remains true.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
condition | object | Yes | — | Condition object with type field |
do | array | Yes | — | Commands to execute inside the loop |
Usage Example
RTILA X PROJECT JSON
{
"command": "while",
"params": {
"condition": {
"type": "script",
"expression": "document.querySelector('.next-page') !== null"
},
"do": []
}
}
Related Scenarios
- View /scenarios/loops/2 · loops
Related Learning Articles
Was this helpful?
Thank you for your feedback!