while
attributeThe while
attribute is allowed on actions to execute a loop until the condition becomes
false
.
In this example the fx-setvalue
action is executed as long as the counter is smaller than 10.
Afterwards
the message action is displaying the result.
fx-update
and fx-refresh
to update the message for each execution of the loop.
When hitting 'start' this will execute a delayed message until 'stop' is clicked. This should certainly used with caution and is included here for demo purposes.
When the trigger is removed, the loop should also stop