Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:IndexOfString

Index Of String is a ProtoFlux node that gives a index of where a string occurs in another string.
(Redirected from ProtoFlux:Index Of String)
Index Of String
Str
*
Part
StartIndex
SearchFromEnd
ComparisonType
Strings

The IndexOfString node looks for where a given string first occurs in another string and returns the index of the starting character, or -1 if not found.

Inputs

Str (String)

The string to search for Part (String) in.

Part (String)

The string to look for inside of Str (String).

StartIndex (int)

The position from which to start searching. Default 0.

SearchFromEnd (bool)

Whether this should start searching from the end rather than the beginning after StartIndex (int).

ComparisonType (StringComparison)

The string comparison to use.

Outputs

* (int)

The index of the starting character of the located occurrence of Part (String) in Str (String), or -1 if not found.

Examples