Twidget provides several miscellaneous commands to facilitate various tasks.
Description:
Checks whether the provided value is null or not.
Inputs:
Output:
true
if the value is null; otherwise, returns false
.Description:
Checks whether the provided value is not null.
Inputs:
Output:
true
if the value is not null; otherwise, returns false
.Description:
Returns the opposite boolean value of the input.
Inputs:
Output:
true
if the input is false
, and false
if the input is true
.Description:
Logs the provided text to the console or log file.
Inputs:
log_level: The log level (e.g., INFO, DEBUG, ERROR).
message: The message to be logged.
Output:
None.
Description:
Generates a random string of the specified length with optional inclusion of letters and numbers.
Inputs:
length: The length of the random string.
include_letters: Whether to include letters in the string.
include_numbers: Whether to include numbers in the string.
Output:
Description:
Generates a random number between the specified minimum and maximum values.
Inputs:
min: The minimum value for the random number.
max: The maximum value for the random number.
Output:
Description:
Sends a user a password reset email containing a reset key.
Inputs:
email: The email address of the user.
reset_key: The reset key to be included in the email.
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...
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...
Managing Files
Twidget offers a set of commands to manipulate files in your file store. Below are the descriptions and usage of each command to help you understand how to utilize them effectively. Get File. Retrieve a file via file path. Inputs: - `path`: The file path to retrieve the file from. Outputs: - `filena...
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 ...
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. ...