Twidget offers a variety of commands to help you manipulate lists easily without coding. Below is a detailed explanation of each command available.
Description: Returns the element in the provided list at the given index.
Inputs:
list
: The list from which to get the element.
index
: The index of the element to return.
Output: The element at the given index in the list.
Description: Returns the first element of the provided list.
Inputs:
list
: The list from which to get the first element.Output: The first element of the list.
Description: Returns the last element of the provided list.
Inputs:
list
: The list from which to get the last element.Output: The last element of the list.
Description: Adds the provided item to the end of the provided list.
Inputs:
list
: The list to which the item will be added.
item
: The item to be added to the list.
Output: The number indicating the new size of the list.
Description: Inserts the provided item at the given index in the provided list.
Inputs:
list
: The list to which the item will be inserted.
item
: The item to be inserted.
index
: The index at which to insert the item.
Output: The number indicating the new size of the list.
Description: Adds all of the elements in the second provided list to the end of the first provided list.
Inputs:
list_1
: The list to which elements will be added.
list_2
: The list containing elements to be added to list_1
.
Output: None.
Description: Removes the element at the given index from the provided list.
Inputs:
list
: The list from which an item will be removed.
index
: The index of the item to be removed.
Output: The modified list after removal.
Description: Removes the specified item from the provided list if it exists.
Inputs:
list
: The list from which an item will be removed.
item
: The item to be removed.
Output: A boolean indicating whether an item was removed.
Description: Removes all elements from the first list that also exist in the second list.
Inputs:
list_1
: The list from which elements will be removed.
list_2
: The list containing elements to be removed from list_1
.
Output: None.
Description: Returns the index of the first occurrence of the specified object in the provided list.
Inputs:
list
: The list in which to find the item.
item
: The item to find the index of.
Output: The index of the first occurrence of the item in the list.
Description: Returns the number of elements in the provided list.
Inputs:
list
: The list whose size will be returned.Output: The size of the list.
Description: Removes all elements from the provided list.
Inputs:
list
: The list to be cleared.Output: None.
Description: Reverses the order of the elements in the provided list.
Inputs:
list
: The list to be reversed.Output: A boolean indicating whether the list was successfully reversed.
Description: Randomly shuffles the elements in the provided list.
Inputs:
list
: The list to be shuffled.Output: None.
Description: Concatenates all elements of the provided list into a single string using the specified delimiter.
Inputs:
list
: The list whose elements will be concatenated.
delimiter
: The delimiter to use between elements.
Output: A string containing all elements of the list separated by the delimiter.
Description: Checks whether the provided list is empty or not.
Inputs:
list
: The list to check.Output: A boolean indicating whether the list is empty.
Description: Checks whether the provided list is not empty.
Inputs:
list
: The list to check.Output: A boolean indicating whether the list is not empty.
Description: Checks whether the provided list contains the specified item.
Inputs:
list
: The list in which to check.
item
: The item to check for in the list.
Output: A boolean indicating whether the item is in the list.
Math
Twidget offers a variety of commands to manipulate numbers. Below are the math commands available, along with their descriptions, inputs, and outputs. Sum. Description: Adds together a list of numbers and returns the sum. - Inputs: - `numbers`: A list of numbers to be added together. - Output: A sin...
Error Handling
When building applications with Twidget, you may encounter situations where you need to handle errors gracefully to ensure your application runs smoothly. Twidget provides two powerful commands for error handling: `try-catch` and `throw-error`. This documentation will guide you on how to use these c...
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. ...
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...
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...