Output

Overview

Returns the results of AMPscript code executed within a code block, such as Concat() or V(), and includes the results inside the rendered content. The function does not return any passed direct literals.

Syntax

Output(1)

Function Properties

Ordinal Type Description
1 string Required Code used to produce results output by system

Usage

%%[ var @output
Set @output = 'My output'
OutputLine(Concat(@output,' is a success!')) ]%%

System outputs:

My output is a success!

Note that the system outputs the CRLF after the string of text.

Last Updated: Jun 8, 2021