ProtoFlux:Index Of String: Difference between revisions

From Resonite Wiki
Create Index Of String ProtoFlux Node Page
 
m typo
 
(One intermediate revision by the same 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.
Line 51: Line 51:
File:Protoflux_example_Index_Of_String.webp|An example of Index Of String being used to splice a string for parsing.
File:Protoflux_example_Index_Of_String.webp|An example of Index Of String being used to splice a string for parsing.
</gallery>
</gallery>
[[Category:ProtoFlux:Strings]]

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