v()

Outputs the value of a variable.

Availability 

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).

Syntax 

1v(variableName)

The v() function has one parameter:

  • variableName (string): Required. The variable to output the value of.

Usage 

This example declares and sets a variable, and then outputs the value of that variable.

1%%[
2  Var @hello
3  Set @hello = "Hello, world!"
4]%%
5
6<p>%%=v(@hello)=%%</p>

The example returns this text.

1Hello, world!