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

Return

The `return` command in Twidget is a special command used to halt the current command workflow and immediately return a specified result. This command overrides any subsequent processes and outputs the return result regardless of the rest of the workflow logic. This command is particularly useful fo...

Security

Twidget provides several built-in functions to enhance the security of your applications. Below is an overview of each security command, including its description, inputs, and outputs. Generate ID. Description: Generates a unique identifier. None - Type: Text Hash Text. Description: Hashes the provi...

Send Message

Send SMS Command. With Twidget, you can send SMS messages to phones using the `Send SMS` command. This functionality varies depending on the provider. Currently, we support Twilio as the SMS provider. To use Twilio for SMS integrations, you will need: - A Twilio account ID - Twilio Auth Token - A Tw...

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...

Variables

Variables are essential building blocks in Twidget that allow you to store and manipulate data dynamically within your no-code applications. They enable you to create flexible and interactive applications by holding values that can be changed and referenced throughout your workflow. Creating Variabl...