Hi all,
I'm trying to customise my email content using an Email Script. Basically I want to display different content if:
Non-working example:
#if( $lead.ProgramStatus == "Registered" )
#set($message = "Thanks for registering")
#else
#set($message = "Register at...")
#end
Is this possible, and if so, how?
Thanks,
Matt
The notion of a single $lead.ProgramStatus doesn't make sense because a lead can be in multiple Programs.
If you can't directly duplicate the Smart List criteria within Velocity, you can create a segmentation (itself based on a SL) and then refer to the lead's segment in VTL. Segmentations may take up to 24 hours to update (depending on criteria) but give amazing power to Velocity scripts.