---
schema_version: "1"
id: 5070e5288be2998c95e6cba54dfda30a7d466564b4fdcb542c82af946e1ab08f
title: OutputLine()
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-line.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud-ampscript/references/mc-ampscript-utilities/mc-ampscript-reference-utilities-output-line.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 13c98f12fcc056a0541ea399c6ff4bf1bf96cc1d4fda7c3f2c7e3deeef92e667
products:
  - AMPscript for Marketing Cloud
  - Marketing Cloud
---
# OutputLine()

Returns the result of an AMPscript function, such as Concat() 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 the rendered content. The function also appends a newline (CRLF) character after the result of the nested function.

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.

## 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

```
OutputLine(value)
```

The `OutputLine()` function has one parameter:

- `value` (AMPscript function): Required. The function that produces the results to be output by the system.

## Usage

This example uses the `OutputLine()` function to output the result of two nested functions. The first occurrence of the `OutputLine()` 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."
  OutputLine(Concat(@hello, "world!"))
  OutputLine(v(@another_line))
]%%
```

The example returns this text.

```
Hello, world!
This is another line of text.
```

**note:** When the output is rendered as HTML, the results of both functions are shown on a single line. This behavior occurs because the function adds a carriage return plus line feed (CRLF) character to the end of the output, as opposed to an HTML line break (`<br/>`). In other outputs, such as the text version of an email or an SMS message, the outputs appear on separate lines.
