ProtoFlux:IndexOfString: Difference between revisions

From Resonite Wiki
add category
m YoshBot moved page ProtoFlux:Index Of String to ProtoFlux:IndexOfString: Automated: removing spaces from ProtoFlux namespace
 
(One intermediate revision by one other user not shown)
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 00:23, 21 August 2025

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