ReferenceScript nodesUtilities › Text
Text Length
How many letters the text has.
ƒText Length
SHelloResult
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Stext | text | "Hello" | – |
Outputs
| Pin | Type |
|---|---|
Resultout | int |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log((String("Hello").length));In a graph
◆On Scene Start
ƒText Length
SHelloResult
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.