ProtoFlux:Index Of String: Difference between revisions

From Resonite Wiki
add category
m typo
 
Line 16: Line 16:
|}}
|}}


Index Of String is a ProtoFlux noide that gives a index of where a string occurs in another string.  
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.
The output  is at where it starts.

Latest revision as of 22:49, 17 February 2024

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