Skip to main content

JoinToString

This formula allows you to join a list of strings or numbers by a separator. For example, if the list [1, 2, "hello", 3] is provided with a " + " separator, the result of this formula will be the string "1 + 2 + hello + 3".

Returns​

string

JSON Format​

{
"type": "joinToString",
"components": ...,
"separator": ...
}

RPG Script​

This component can be written in RPG Script as:

joinToString(...)

Fields​

FieldTypeRequiredDescription
componentsStatFormulaComponent✓The formula for the list of strings or numbers that should be joined by the separator.
@type array<string> | array<integer> | array<decimal>
separatorString✓The separator that should be used when joining the strings.