Watch the walkthrough
Explore the command builder and assemble a workflow from commands.
Recorded with an earlier Twidget interface. Names, control locations and available options may differ; use the linked documentation for current guidance.
Watch tutorial (3:32)
Browse all video tutorials
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.
Creating a Command
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.
Managing Commands
Viewing Commands
You can view all your commands and preview their inputs and output variable

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

Editing Commands
To edit any existing command:
Click on the command you want to edit.
Change its inputs/outputs as needed.
Save your changes.
Get help while editing
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.
Deleting Commands
You can delete a command by selecting it and choosing the delete option.

Nested Commands
Some commands allow you to add child commands, for example:
Special Commands
- Return Commands: These commands will halt the execution of the current function, event, or endpoint.

By leveraging these commands, you can create complex workflows and business logic without writing a single line of code.