ProtoFlux:GetCharacter

From Resonite Wiki
Revision as of 00:20, 21 August 2025 by YoshBot (talk | contribs) (YoshBot moved page ProtoFlux:Get Character to ProtoFlux:GetCharacter: Automated: removing spaces from ProtoFlux namespace)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Get Character
Str
*
Index
Characters

The Get Character node retrieves a character from a given string at a given index.

Inputs

Str (string)

The string to retrieve a character from.

Index (int)

The 0-indexed character to retrieve from Str.

Outputs

* (char)

The character from Str at index Index. If Index is either negative or greater than or equal to the length of Str, the output will be a character with value 0.

This node deals with individual chars of a string, whether by way of indexing a string or by returning a char. This may result in unintuitive behavior with strings containing characters that reside outside the Basic Multilingual Plane, such as "mismatched" indices or returning an invalid char. For more information, see the type page for String.

Examples