Concat
→ stringJoins two or more string values together. Equivalent to string concatenation with the + operator.
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Platform.Function.Concat(value1, value2 [, ...])
2+ arguments
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value1 |
string | Yes | First string |
value2 |
string | Yes | Second string |
... |
string | No | Additional strings |
Examples
var full = Platform.Function.Concat("Hello", ", ", "World", "!");
Write(full); // "Hello, World!"
// Equivalent to:
var full2 = "Hello" + ", " + "World" + "!";
In practice, the + operator is more commonly used for concatenation in SSJS. Concat is most useful for consistency when writing AMPscript-style code.