This page documents the development version of Graphite at dev.graphite.art, which may differ from the current release.
Similar to the String Contains node, this searches within the input string for the first (or last) occurrence of a substring and returns the index of where that begins, or -1 if not found.
Interface
Inputs
| Parameter | Details | Possible Types |
|---|---|---|
| String | The string to search within. Primary Input | String[]String |
| Substring | The substring to search for. Default: | String[]String |
| From End | Find the start index of the last occurrence instead of the first. Default: | Bool[]Bool |
Outputs
| Product | Details | Possible Types |
|---|---|---|
| Result | The value produced by the node operation. Primary Output | NumberNumber[] |