Outputs the value of a variable.
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
v(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.
%%[
Var @hello
Set @hello = "Hello, world!"
]%%
<p>%%=v(@hello)=%%</p>
The example returns this text.
Hello, world!