Skip to main content

Control Flow

While Loop​

Restrictions: "none"

While Loop

Executes a sequence of operations repeatedly according to the loop type and max iterations setting. With 'do-until', stops when the last operation returns true. With 'do-while', continues while the last operation returns true (stops when false). Alternatively, use a custom condition to control the loop.

Inputs​

NameTypeDescriptionRequiredDynamic
max_iterationsnumberThe maximum number of iterations to runYesNo
loop_typeenumWhether to continue while the last operation returns true (do-while) or stop when the last operation returns true (do-until)YesNo
wait_between_iterationnumberWait time in milliseconds between iterationsNoNo
use_custom_conditionbooleanUse a custom Lua condition instead of checking the last operation's return valueNoNo
custom_conditioncodeCustom Lua code that evaluates to true or false. The loop continues while this condition is true (regardless of loop type).NoNo

Outputs​

NameTypeDescription

Iterator​

Restrictions: "none"

Iterator

Iterates over a list of results and applies a sequence of operations to each item in the list.

Inputs​

NameTypeDescriptionRequiredDynamic
inputcodeThe input to iterate overYesNo
wait_between_iterationnumberWait time in milliseconds between iterationsNoNo

Outputs​

NameTypeDescription

If​

Restrictions: "none"

If

Conditionally execute one of two branches based on the specified condition

Inputs​

NameTypeDescriptionRequiredDynamic
conditioncodeYesNo

Outputs​

NameTypeDescription

Loop​

Restrictions: "none"

Loop

Executes a sequence of operations repeatedly for a specified range

Inputs​

NameTypeDescriptionRequiredDynamic
fromnumberThe starting valueYesNo
tonumberThe ending valueYesNo
wait_between_iterationnumberWait time in milliseconds between iterationsNoNo

Outputs​

NameTypeDescription

Conditional​

Restrictions: "none"

Conditional

Conditionally execute one of many branches based on the specified condition

Inputs​

NameTypeDescriptionRequiredDynamic
branchesbranchesYesNo

Outputs​

NameTypeDescription