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 converts to "123"
true converts to "true"
[1, 2, 3] converts to "[1, 2, 3]"
{"name": "John"} converts to "{\"name\": \"John\"}"
The Convert to Number command converts the provided value to a numerical format.
Examples:
"123" converts to 123
true converts to 1
false converts to 0
"12.34" converts to 12.34
The Convert to Boolean command converts the provided value to a boolean (true/false) format.
Examples:
"true" converts to true
"false" converts to false
1 converts to true
0 converts to false
"" converts to false
"text" converts to true
The Convert to Date command converts the provided value to a date format.
Examples:
"2021-12-31" converts to Fri Dec 31 2021
"12/31/2021" converts to Fri Dec 31 2021
1633039200000 (timestamp) converts to Fri Oct 01 2021
The Convert to Object command converts the provided value to an object format.
Examples:
'{"name": "John"}' converts to {"name": "John"}
'["1", "2", "3"]' converts to ["1", "2", "3"]
Any valid JSON string converts to its corresponding object
By utilizing these conversion commands, you can seamlessly transform data types to suit your specific requirements within Twidget.
Database
Twidget offers many commands to manage data in your database. Below is a list of the available commands and their functionalities: Get Data. Retrieve an entry from a table. Get Multiple Data. Retrieve multiple entries from a table. Save Data. Save an object to a database table. Save Multiple Data. S...
Local Storage
Twidget provides a set of local storage commands that enable interaction with the browser’s `localStorage` API through a no-code interface. These commands are useful for storing, retrieving, and managing key-value data persistently within the current domain context. Purpose. These commands abstract ...
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...
Lists
Twidget offers a variety of commands to help you manipulate lists easily without coding. Below is a detailed explanation of each command available. Get. Description: Returns the element in the provided list at the given index. Inputs: - `list`: The list from which to get the element. - `index`: The ...
Date
Twidget offers a variety of commands to manipulate date objects. Below are the available commands along with their respective descriptions, inputs, and outputs. Current Date. Description: Returns the current date and time. Output: - Type: DATE Add Time. Description: Returns the date plus a specified...