---
schema_version: "1"
id: d6b6949f1d82b739a7920f155885ce7de40b7da544b8ebbf800bfdbf2bd53e98
title: Output()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/ampscript/references/utilities/mc-ampscript-reference-utilities-output.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-utilities/mc-ampscript-reference-utilities-output.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 49ee372b15915b84dc1aa724c1da0f06cbd02496da6084352df4c0ecca948409
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# Output()

Returns the result of an AMPscript function, such as [Concat()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/string/mc-ampscript-reference-string-concat.md) or [v()](https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-utilities/mc-ampscript-reference-utilities-v.md), and includes the result inside of the rendered content.

## Availability

<table>
  <tr>
    <td>Marketing Cloud Engagement</td>
    <td>✅ Yes</td>
  </tr>
  <tr>
    <td>Marketing Cloud Next</td>
    <td>✅ Yes</td>
  </tr>
</table>

This function became available in Marketing Cloud Next during the Summer ’26 release (API version 67.0).

## Syntax

```
Output(value)
```

The `Output()` function has one parameter:

- `value` (AMPscript function): Required. The function that produces the results to be output by the system.

  **note:** `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.

## Usage

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.

```
%%[
  Var @hello, @another_line
  Set @hello = "Hello, "
  Set @another_line = "This is another line of text."
  Output(Concat(@hello, "world!"))
  Output(v(@another_line))
]%%
```

The example returns this text.

```
Hello, world! This is another line of text.
```
