→Examples: gallery not that big |
m example clarification + alt text |
||
Line 30: | Line 30: | ||
== Examples == | == Examples == | ||
<gallery widths=480px heights=320px> | <gallery widths=480px heights=320px> | ||
File:Protoflux_example_Char_To_String.webp| | File:Protoflux_example_Char_To_String.webp|alt=The characters "7" and a space are plugged in to a Char to String node. On the bottom, a string input of "Drunken Sailors" in present. All 3 strings are plugged in to a Concatenate Multi String, where hte output is "7 Drunken Sailors"|Example of using Char To String in some ProtoFlux code, wherein the characters "7" and a space are cast to string, then combined in a [[ProtoFlux:Concatenate_Multi_String|Concatenate Multi String]] to form a phrase. | ||
</gallery> | </gallery> | ||
[[Category:ProtoFlux:Strings:Characters]] | [[Category:ProtoFlux:Strings:Characters]] |
Revision as of 17:59, 20 February 2024
Char To String
Characters
Char to String is a ProtoFlux node that acts as a cast to turn a character into a string.
This is very useful when working with individual characters and one needs to use string operations, such as concatenation, with said characters.
Inputs
Input (Char)
The character to turn into a string.
Outputs
* (String)
The resulting converted string.
Examples
-
Example of using Char To String in some ProtoFlux code, wherein the characters "7" and a space are cast to string, then combined in a Concatenate Multi String to form a phrase.