Counts the total number of characters in the text.
text
The text to be counted.
Text
-
Yes
Returns the total length.
Number
In this example, we will count the total length of a string.
Drag a button component into the canvas and open the Action tab. Select the press event of the button.
button
Action
press
Add Log.write function and add a subflow on it's value.
Log.write
Then put Text.length inside it and fill the text "Hello World!"
Text.length
The console will return the total length of text.
Last updated 1 year ago