Twidget offers a variety of commands to manipulate text in various ways.
-
Converts all characters of the provided text to uppercase.
Converts all characters of the provided text to lowercase.
Concatenates two provided texts.
text_1: The first text to be concatenated.
text_2: The second text to be concatenated.
Extracts a substring from the provided text.
text: The original text.
start_index: The starting index of the substring.
end_index: The ending index of the substring.
Finds the index of the first occurrence of the second provided text in the first provided text.
text: The original text.
sub_text: The text whose first occurrence index is to be found.
Finds the index of the last occurrence of the second provided text in the first provided text.
text: The original text.
sub_text: The text whose last occurrence index is to be found.
Calculates the length of the provided text.
Replaces all occurrences of a specified substring with another substring.
text: The original text.
matching_text: The substring to be replaced.
replacement_text: The substring to replace with.
Removes whitespace from both ends of a text.
Splits a string into an array of substrings based on a specified delimiter.
text: The original text.
delimiter: The delimiter on which to split the text.
Checks whether the first text contains the second text or not.
text: The original text.
matching_text: The text to check for.
Checks whether the first text starts with the second text or not.
text: The original text.
matching_text: The text to check against the start.
Checks whether the first text ends with the second text or not.
text: The original text.
matching_text: The text to check against the end.
Checks whether the first text is equal to the second text or not.
text_1: The first text to compare.
text_2: The second text to compare.
Checks whether the first text is not equal to the second text or not.
text_1: The first text to compare.
text_2: The second text to compare.
Checks whether the provided text is empty or not.
Checks whether the provided text is not empty or not.
Session Storage
Twidget includes a suite of session storage commands that enable no-code interaction with the browser’s `sessionStorage` API. These tools allow temporary storage of key-value data for the current page session. Purpose. Session storage commands allow developers to manage transient data tied to a sing...
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...
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 ...
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...
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...