length
Last updated
Last updated
Counts the total number of characters in the text.
Name | Description | Input Type | Default | Options | Required |
---|---|---|---|---|---|
text | The text to be counted. | Text | - | - | Yes |
Description | Output Type |
---|---|
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.
Add Log.write
function and add a subflow on it's value.
Then put Text.length
inside it and fill the text "Hello World!"
The console will return the total length of text.