- 06 Aug 2021
- 2 Minutes to read
- Contributors
- Print
- DarkLight
- PDF
Text Block
- Updated on 06 Aug 2021
- 2 Minutes to read
- Contributors
- Print
- DarkLight
- PDF
The Text blocks are as follows:
It performs all operations with respect to texts.
Text:
The text block may have a text or number within quotations. This is used to represent a string.
Create Texts from Multiple Texts:
This block combines two texts to return a new text. It is similar to string concatenation where two texts are joined to form a new text. It can be done using independent variables or Arrays.
Text to Title Case or Lowercase or Uppercase:
This block converts lowercase to uppercase letters and vice-versa. It applies to Strings.
Length:
This block takes a particular text input (String) and provides the length of the text as output. The length is the integer.
Append Text:
This block is used to append the text value to the declared variables.
Search Text:
This block is used to search and locate a particular text value from a given variable with the help of the text index. The search is done either on the top-down approach or vice-versa. By identifying the index value, the text location is identified and displayed in the output.
Get Char:
This block fetches a particular character or letter (first letter/last letter/random letter) for a string input. Similar to the "search text" option, this is also done with the help of indexing.
Print:
This block is used to print a particular text that is given as a variable input. The input can either be a text or a number declared as a string.
Print to Console:
This block is used to print a particular variable to console log. The variable can be either a text or a number declared as a string.
Trim:
This block helps to identify the number of white spaces in between texts, after and before texts.
Variable Functions:
The variable functions are nothing but commands that return values based on user requests.
They return: character location, character code location, concatenated values, includes, index values, last index values, and local comparison values.
Subtext:
This block is used to identify a particular text from a group of texts. The inputs are given and the output is a character based on all the inputs.