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.
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...
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. ...
Loops
In Twidget, loops allow you to execute commands multiple times, either based on a condition or through a set number of iterations. Loops can also be nested, meaning you can run loops within other loops, creating complex logic for your tasks. List Loop. The `List Loop` command enables you to loop thr...
Database
Twidget offers many commands to manage data in your database. Below is a list of the available commands and their functionalities: Get Data. Retrieve an entry from a table. Get Multiple Data. Retrieve multiple entries from a table. Save Data. Save an object to a database table. Save Multiple Data. S...
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...