ReferenceScript nodesUtilities › Text
Find Substring
Where Substring first comes in Search In (or last, with Search from End), from Start Position (-1: the start, or the end); -1 when it doesn't.
ƒFind Substring
Search InHelloResult
Substringl
Use Case
Search from End
Start Position-1
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Search Intext | text | "Hello" | – |
Substringfind | text | "l" | – |
Use CaseuseCase | bool | false | – |
Search from EndfromEnd | bool | false | – |
Start Positionat | int | -1 | – |
Outputs
| Pin | Type |
|---|---|
Resultout | int |
In a graph
◆On Scene Start
ƒFind Substring
Search InHelloResult
Substringl
Use Case
Search from End
Start Position-1
ƒ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.