Output()

Returns the result of an AMPscript function, such as Concat() or v(), and includes the result inside of the rendered content.

Marketing Cloud Engagement ✅ Yes
Marketing Cloud Next ✅ Yes

This function became available in Marketing Cloud Next during the Summer ’26 release (API version 67.0).

The Output() function has one parameter:

  • value (AMPscript function): Required. The function that produces the results to be output by the system.

    Output() only produces output when value is an AMPscript function call. If you provide any other value, such as a string literal, the function returns an error.

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.