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.
These commands abstract the native Web Storage API, allowing users to manage local storage without writing code. This is particularly useful for persisting state, caching responses, or saving user preferences across sessions.
Local Storage Scope: All operations are scoped to the current domain.
Key-Value Structure: Data is stored and accessed using string keys.
Data Handling: Inputs are typed, and outputs are returned in text format where applicable.
Set Item: Saves a value under a specific key in local storage. Accepts any data type as the value.
Get Item: Retrieves a value by key and returns it as text.
Remove Item: Deletes the value associated with a given key.
Clear: Empties all entries in the current domain's local storage.
These commands offer a declarative way to manage local storage, making it easy to build stateful web apps within Twidget’s no-code environment.
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...
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...
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 ...
Connector Commands
Connector Commands allow you to integrate Twidget projects with external services such as Google Drive, Slack, OpenAI’s ChatGPT, and many others. These commands provide ready-made actions that communicate with third-party APIs, removing the need to manually create and maintain external HTTP requests...
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. ...