Commands are the building blocks of Twidget's no-code platform. They function like code statements and can perform various operations such as creating and updating variables, loops, conditionals, retrieving and manipulating data in the datastore, and much more.
-
Navigate to the Commands section of your builder.
Click on Add Command. This will open a sidebar.
In the sidebar, you can:
Select the command you want to add.
Use the search bar to find a specific command.
Access your custom functions as commands.
When you add a command, some commands will require inputs, while others provide outputs that you can use in other commands.

You can view all your commands and preview their inputs and output variable

For better understanding and managing your business logic, you can add custom descriptions to commands.

To edit any existing command:
Click on the command you want to edit.
Change its inputs/outputs as needed.
Save your changes.
When a command has a guide, select the help icon beside its name in the editor header. Its label is View documentation. The guide opens in the documentation panel, keeping your unfinished command changes.
This example shows the help icon beside Has Record, above the command's input and output controls.

Close the documentation panel to continue editing, then save the command when you are ready. Opening a guide does not save or publish your changes.
You can delete a command by selecting it and choosing the delete option.

Some commands allow you to add child commands, for example:
Loops: Iterate over a set of items and execute commands for each item.
Conditionals: Execute commands based on specified conditions.

By leveraging these commands, you can create complex workflows and business logic without writing a single line of code.
Safer Releases
Move a reviewed set of published workflows from a Dev workspace to a Prod workspace. Releases let you review the changes together, keep a release history and review a rollback if you need to restore the previous workflows. Prepare your workspaces. Use two existing workspaces in the same organization...
Workflow templates
Keep reusable workflows in a private library within your workspace. Save a useful endpoint, function, middleware or event, then install independent draft copies when you need the same starting point again. Related workflows are included automatically where supported. Open Workflow templates from the...
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...
Data Types
Twidget supports six main data types to facilitate interactions within the platform. These data types are essential for defining inputs, outputs, and table fields, helping users understand the nature of the data being handled. The available data types in Twidget are as follows: Text. - Description: ...
Command Output
Some commands in Twidget return outputs, which are essential for dynamic and conditional logic within your workflows. These outputs are displayed next to the command and are prefixed with an "as" to indicate the variable name. Using Output Variables. Once a command returns an output, you can use the...