Sign Up

Loops

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.

Related Topics

Send External HTTP Request

Using Twidget, you can send external HTTP requests effortlessly. This functionality allows you to communicate with external servers or APIs. Below, you will find the necessary parameters and structure to set up an HTTP request. Parameters. - URL: The endpoint to which the request will be sent. - Met...

Conditionals

Condition Command. The Condition Command allows you to perform actions based on whether an expression evaluates to true or false. You can nest other commands within the true or false branches of the condition, enabling complex logic flows. - Expression Builder: Validate two variables to equal true. ...

Conversion

Overview. Twidget's conversion commands allow you to easily convert different data types to the required format. Below is a list of the available conversion commands and examples of how to use them. The `Convert to Text` command converts the provided value to a text (string) format. Examples: - `123...

Math

Twidget offers a variety of commands to manipulate numbers. Below are the math commands available, along with their descriptions, inputs, and outputs. Sum. Description: Adds together a list of numbers and returns the sum. - Inputs: - `numbers`: A list of numbers to be added together. - Output: A sin...

Text

Twidget offers a variety of commands to manipulate text in various ways. To Uppercase. Converts all characters of the provided text to uppercase. - text: The text to be converted to uppercase. - A text string with all characters in uppercase. To Lowercase. Converts all characters of the provided tex...