length
Description
Counts the total number of characters in the text.
Input / Parameter
Name
Description
Input Type
Default
Options
Required
text
The text to be counted.
Text
-
-
Yes
Output
Description
Output Type
Returns the total length.
Number
Example
In this example, we will count the total length of a string.
Steps
Drag a
button
component into the canvas and open theAction
tab. Select thepress
event of the button.Add
Log.write
function and add a subflow on it's value.Then put
Text.length
inside it and fill the text "Hello World!"
Result
The console will return the total length of text.
Last updated