Skip to main content

while

Control Flow

Repeats 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

Related Learning Articles

Was this helpful?