Lumberyard
Legacy Reference

String Nodes

Flow Graph is deprecated and will be removed in a future version of Lumberyard. Learn about Script Canvas, Lumberyard's new visual scripting environment.

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn about the latest features, see the Amazon Lumberyard User Guide.

You can use the following flow graph nodes to configure strings.

Collect node

Used to collect a string.

Inputs

Port Type Description
Activate Any Collects the strings and triggers the output
Input String Each string that will be joined
JoinString String String to use between all collected strings

Outputs

Port Type Description
CollectedString String Outputs the collected string set

Compare node

Used to compare two strings.

Inputs

Port Type Description
Compare Any Triggers string comparison
A String First string to compare
B String Second string to compare
IgnoreCase Boolean Ignores casing

Outputs

Port Type Description
Result Integer Outputs -1 if string A less than string B, 0 if String A equals string B, 1 if string A is greater than string B
False Any Triggers if string A does not equal string B
True Any Triggers if string A equals string B

Concat node

Used to concatenate two strings.

Inputs

Port Type Description
Set Any Triggers string concatenation
String1 String First string to concatenate
String2 String Second string to concatenate

Outputs

Port Type Description
Out String Outputs the concatenated string

ReplaceString node

Used to replace a string.

Inputs

Port Type Description
Input String Triggers string replacement
Replace String The string to replace
ReplaceWith String The new string to replace with

Outputs

Port Type Description
OutString String Outputs the replaced string

SetString node

Used to set a string value.

Inputs

Port Type Description
Set Any Sends the string to the output
In String String to set on

Outputs

Port Type Description
Out String Outputs the string value

Split node

Used to split a string.

Inputs

Port Type Description
Activate Any Triggers the string split
Input String The string to split
Separator String Character to separate the string on. If you pass a string, only the first character will be used

Outputs

Port Type Description
Split0 - Split4 String Outputs the specific string split

URLDecode node

Used to decode the URL of a string.

Input

Port Type Description
Input String String to URL decode

Outputs

Port Type Description
DecodedString String Outputs the URL-decoded string