Email token conditional html | Community
Skip to main content
Marissa_Cookson
New Participant
February 16, 2017
Solved

Email token conditional html

  • February 16, 2017
  • 2 replies
  • 2173 views

Is it possible to do conditional html based on whether data exists for a token?

For example: if {{Lead.First Name}} show "Hi First Name"

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by SanfordWhiteman

Absolutely -- using Velocity (the "Email Script" token type) all things are possible. Search the Community and you'll see examples of exactly this use case (conditional greetings).

2 replies

New Participant
February 16, 2017

Sanford is correct! I've recently got into email scripting and it's a whole new world. You'll find a lot of really cool use cases - you can get as fancy as you want since you're effectively programming within Marketo.

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
February 16, 2017

Absolutely -- using Velocity (the "Email Script" token type) all things are possible. Search the Community and you'll see examples of exactly this use case (conditional greetings).