Sign Up

Text

Twidget offers a variety of commands to manipulate text in various ways.

-

To Uppercase

Description

Converts all characters of the provided text to uppercase.

Inputs

  • text: The text to be converted to uppercase.

Outputs

  • A text string with all characters in uppercase.

To Lowercase

Description

Converts all characters of the provided text to lowercase.

Inputs

  • text: The text to be converted to lowercase.

Outputs

  • A text string with all characters in lowercase.

Concat

Description

Concatenates two provided texts.

Inputs

  • text_1: The first text to be concatenated.

  • text_2: The second text to be concatenated.

Outputs

  • A text string which is the combination of the two inputs.

Substring

Description

Extracts a substring from the provided text.

Inputs

  • text: The original text.

  • start_index: The starting index of the substring.

  • end_index: The ending index of the substring.

Outputs

  • A substring extracted from the original text.

Index of

Description

Finds the index of the first occurrence of the second provided text in the first provided text.

Inputs

  • text: The original text.

  • sub_text: The text whose first occurrence index is to be found.

Outputs

  • A number representing the index of the first occurrence.

Last Index of

Description

Finds the index of the last occurrence of the second provided text in the first provided text.

Inputs

  • text: The original text.

  • sub_text: The text whose last occurrence index is to be found.

Outputs

  • A number representing the index of the last occurrence.

Length

Description

Calculates the length of the provided text.

Inputs

  • text: The text whose length is to be determined.

Outputs

  • A number representing the length of the text.

Replace

Description

Replaces all occurrences of a specified substring with another substring.

Inputs

  • text: The original text.

  • matching_text: The substring to be replaced.

  • replacement_text: The substring to replace with.

Outputs

  • A text string with the specified replacements made.

Trim

Description

Removes whitespace from both ends of a text.

Inputs

  • text: The text to be trimmed.

Outputs

  • A text string with removed whitespaces.

Split

Description

Splits a string into an array of substrings based on a specified delimiter.

Inputs

  • text: The original text.

  • delimiter: The delimiter on which to split the text.

Outputs

  • An array of text substrings.

Contains

Description

Checks whether the first text contains the second text or not.

Inputs

  • text: The original text.

  • matching_text: The text to check for.

Outputs

  • A boolean indicating whether the first text contains the second text.

Starts With

Description

Checks whether the first text starts with the second text or not.

Inputs

  • text: The original text.

  • matching_text: The text to check against the start.

Outputs

  • A boolean indicating whether the first text starts with the second text.

Ends With

Description

Checks whether the first text ends with the second text or not.

Inputs

  • text: The original text.

  • matching_text: The text to check against the end.

Outputs

  • A boolean indicating whether the first text ends with the second text.

Equals

Description

Checks whether the first text is equal to the second text or not.

Inputs

  • text_1: The first text to compare.

  • text_2: The second text to compare.

Outputs

  • A boolean indicating whether the two texts are equal.

Not Equal

Description

Checks whether the first text is not equal to the second text or not.

Inputs

  • text_1: The first text to compare.

  • text_2: The second text to compare.

Outputs

  • A boolean indicating whether the two texts are not equal.

Is Empty

Description

Checks whether the provided text is empty or not.

Inputs

  • text: The text to check.

Outputs

  • A boolean indicating whether the text is empty.

Not Empty

Description

Checks whether the provided text is not empty or not.

Inputs

  • text: The text to check.

Outputs

  • A boolean indicating whether the text is not empty.

Related Topics

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 ...

Miscellaneous

Twidget provides several miscellaneous commands to facilitate various tasks. Is Null. Description: Checks whether the provided value is null or not. Inputs: - value: The value to be checked. Output: - boolean: Returns `true` if the value is null; otherwise, returns `false`. Not Null. Description: Ch...

Send External HTTP Request

Using Twidget, you can send external HTTP requests effortlessly. This functionality allows you to communicate with external servers or APIs. Below, you will find the necessary parameters and structure to set up an HTTP request. Parameters. - URL: The endpoint to which the request will be sent. - Met...

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...

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...