Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:Substring

From Resonite Wiki
Revision as of 20:54, 20 February 2024 by Yosh (talk | contribs) (more clear description, example)
Substring
Str
*
StartIndex
Length
Strings

Substring is a ProtoFlux node that allows one to get an arbitrary portion of a provided String.

Inputs

Str (String)

The string to remove a segment from.

StartIndex (int)

The 0-indexed starting point of retrieval from Str.

Length (int)

Length of output substring.

Outputs

* (String)

A segment of Str starting at StartIndex with length Length. If the segment goes past the end of Str, the output is truncated at the end of Str. If Length is less than 1, the output will be an Empty String.

Examples