Twidget offers a variety of commands to manipulate numbers. Below are the math commands available, along with their descriptions, inputs, and outputs.
Description: Adds together a list of numbers and returns the sum.
Inputs:
numbers
: A list of numbers to be added together.Output: A single number representing the sum of the input numbers.
Description: Subtracts one number from another.
Inputs:
number_1
: The number to subtract from.
number_2
: The number to subtract.
Output: A single number representing the result of the subtraction.
Description: Multiplies together a list of numbers and returns the product.
Inputs:
numbers
: A list of numbers to be multiplied together.Output: A single number representing the product of the input numbers.
Description: Divides one number by another.
Inputs:
number_1
: The dividend (number to be divided).
number_2
: The divisor (number to divide by).
Output: A single number representing the quotient of the division.
Description: Computes the remainder of one number divided by another.
Inputs:
number_1
: The number to be divided.
number_2
: The number to divide by.
Output: A single number representing the remainder of the division.
Description: Checks whether two numbers are equal.
Inputs:
number_1
: The first number.
number_2
: The second number.
Output: A boolean indicating whether the numbers are equal (true
) or not (false
).
Description: Checks whether two numbers are not equal.
Inputs:
number_1
: The first number.
number_2
: The second number.
Output: A boolean indicating whether the numbers are not equal (true
) or not (false
).
Description: Checks whether the first number is greater than the second number.
Inputs:
number_1
: The first number.
number_2
: The second number.
Output: A boolean indicating whether the first number is greater than the second number (true
) or not (false
).
Description: Checks whether the first number is less than the second number.
Inputs:
number_1
: The first number.
number_2
: The second number.
Output: A boolean indicating whether the first number is less than the second number (true
) or not (false
).
Description: Checks whether the first number is greater than or equal to the second number.
Inputs:
number_1
: The first number.
number_2
: The second number.
Output: A boolean indicating whether the first number is greater than or equal to the second number (true
) or not (false
).
Description: Checks whether the first number is less than or equal to the second number.
Inputs:
number_1
: The first number.
number_2
: The second number.
Output: A boolean indicating whether the first number is less than or equal to the second number (true
) or not (false
).
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...
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 ...
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...
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...
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...