Concat

This function concatenates one or more strings.

Arguments

Concat(1,n)

Ordinal Type Required Description
1 String True First string to concatenate
n String False Second string to concatenate

NOTE: Additional parameter values can be appended as arguments.

Example

%%[

var @firstName
var @lastName
var @fullName

set @firstName = AttributeValue("firstName") /* value from attribute or DE column in send context */
set @firstName = "Suzy" /* or a literal value */

set @lastName = AttributeValue("lastName") /* value from attribute or DE column in send context */
set @lastName = "Jackson" /* or a literal value */

set @fullName  = Concat(@firstName, " ", @lastName)

]%%
firstName: %%=v(@firstName)=%%
<br>lastName: %%=v(@lastName)=%%
<br>fullName: %%=v(@fullName)=%%

Output

firstName: Suzy
lastName: Jackson
fullName: Suzy Jackson