AMPscript Output (Next)
AMPscript Output does not work in Marketing Cloud Next emails. A nested function call is rejected at save and a literal argument renders nothing; use v to write a value.
Syntax
Output(value) → void
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value |
string | number | variable | Yes | Literal or variable; nothing is written |
Next refuses to save an email where the argument is a function call, such as Output(Concat("x")), or where the argument is missing.
Example
Output cannot write anything into a Next email. Use v instead:
%%[ SET @label = "checkpoint reached" ]%%
%%=v(@label)=%%
Renders checkpoint reached.
Return value
void — nothing is returned.
Behaviour
A nested function call is rejected at save. An email containing Output(Concat("x")) cannot be saved, even inside an IF branch that never runs: the content API answers HTTP 400 with “The AMPscript syntax isn’t valid”. Two nested calls as arguments are rejected the same way.
An empty call is rejected at save. Output() gives the same HTTP 400.
A literal or variable renders nothing. Output("bare"), Output(@word) with @word set to "vee", and Output(123) save, and the email renders an empty string in their place.
Show Next test script
<!-- Marketing Cloud Next test script for Output. Paste it into the HTML component of a
Next email and open the preview. Each line prints the result Next gave when the call
was rendered on its own (expect) next to the result of this run (got).
Assembled from single-call test emails (dates on the page); it has not been
run as one email. Calls that make Next fail are listed separately. -->
<p>c1 expect=[] got=[%%[ Output("bare") ]%%]</p>
<p>c2 expect=[] got=[%%[ SET @r2ov = "vee" Output(@r2ov) ]%%]</p>
<p>c3 expect=[] got=[%%[ Output(123) ]%%]</p>
Show calls that fail in Next (one email each)
<!-- Run each call below in its own Next email: one of them in a combined email
would stop the whole preview or block the save. -->
<!-- email 1: expect that the save is rejected (HTTP 400) -->
%%[IF 1 == 2 THEN Output(Concat("x")) ENDIF]%%gated
<!-- email 2: expect that the save is rejected (HTTP 400) -->
%%[ Output() ]%%
<!-- email 3: expect that the save is rejected (HTTP 400) -->
%%[ Output(Concat("a"),Concat("b")) ]%%
Differs from official docs
- The documented argument is rejected and other arguments write nothing. The docs require a function call as the argument and say anything else raises an error. In Next an email with
Output(Concat("x"))cannot be saved, and a literal or variable argument renders nothing, without an error. Card
Availability & differences
| Platform | Available |
|---|---|
| Marketing Cloud Engagement | Yes (CloudPages and landing pages; not in sendable email content, use OutputLine there) |
| Marketing Cloud Next | Listed from API 67.0, but it writes nothing in an email (tested 2026-11-23) |
On an Engagement CloudPage Output(Concat("A")) writes A; Engagement email content rejects Output as an unknown function. Next rejects an email with a nested call or no argument at save, and renders nothing for a literal or variable argument. Compared 2026-11-23 by rendering the same calls in a Marketing Cloud Next email.
See also
- v — writes a value inline in a Next email
- OutputLine — writes only a line break in Next
- Official reference