Output()
Returns the result of an AMPscript function, such as Concat() or v(), and includes the result inside the rendered content.
This function only outputs the result of a nested function. If you pass a string or any other literal as the parameter, the function doesn’t output a result.
The Output()
function has one parameter:
value
(AMPscript function): Required. The function that produces the results to be output by the system.
This example uses the Output()
function to output the result of two nested functions. The first occurrence of the Output()
function uses the Concat()
function to join the value of a variable with another string of text. The second occurrence uses the v()
function to output the value of a variable.
The example returns this text.