Watch the walkthrough
Use Continue and Break to control how a loop proceeds.
Recorded with an earlier Twidget interface. Names, control locations and available options may differ; use the linked documentation for current guidance.
Watch tutorial (4:29)
Process a list of values with a loop.
Recorded with an earlier Twidget interface. Names, control locations and available options may differ; use the linked documentation for current guidance.
Watch tutorial (3:52)
Browse all video tutorials
In Twidget, loops allow you to execute commands multiple times, either based on a condition or through a set number of iterations. Loops can also be nested, meaning you can run loops within other loops, creating complex logic for your tasks.
List Loop
The List Loop command enables you to loop through a list of items, executing nested commands for each item in the list.

Count Loop
The Count Loop command repeats the nested commands a specified number of times. You can also specify the order or the iterator.

While Loop
The While Loop command continues to execute nested commands as long as a specified condition holds true.

Break
The Break command exits the current loop prematurely, regardless of the remaining iterations or conditions.
Continue
The Continue command skips to the next iteration of the loop, bypassing the remaining commands in the current iteration.
Nested Loops
You can nest loops within other loops to create more complex logical structures.

Use these looping commands to efficiently control the flow of your tasks and manage repetitive actions in Twidget.