ProtoFlux:Index Of String

From Resonite Wiki
Index Of String
Str
*
Part
StartIndex
SearchFromEnd
ComparisonType
Strings

Index Of String is a ProtoFlux node that gives a index of where a string occurs in another string.

The output is at where it starts.

Inputs

Str (String)

The string to search for Part (String) in.

Part (String)

The string to look for inside of Str (String). Returns -1 if not found.

StartIndex (int)

The position after 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 where Part (String) first occurs after StartIndex (int) in Str (String). The number returned is at where the occurrence starts.

Examples