v()

Outputs the value of a variable.

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!