Flow
flow/while
While Loop
Repeatedly executes the body branch while a boolean condition is true.
Note: Be careful to ensure the condition can eventually become false to avoid infinite loops freezing the server thread.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
exec |
exec | Starts the loop. | |
condition |
boolean | Loop continues while this is true. |
Outputs
| Name | Type | Description |
|---|---|---|
body |
exec | Executed on each iteration. |
done |
exec | Executed when the condition becomes false. |