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

NameTypeOptionalDescription
exec exec Starts the loop.
condition boolean Loop continues while this is true.

Outputs

NameTypeDescription
body exec Executed on each iteration.
done exec Executed when the condition becomes false.