ProtoFlux:Index Of String

From Resonite Wiki
Revision as of 22:45, 17 February 2024 by 989onan (talk | contribs) (Create Index Of String ProtoFlux Node Page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Index Of String
Str
*
Part
StartIndex
SearchFromEnd
ComparisonType
Strings

Index Of String is a ProtoFlux noide 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