I'm trying to customise my email content using an Email Script. Basically I want to display different content if:
#if( $lead.ProgramStatus == "Registered" )
#set($message = "Thanks for registering")
#set($message = "Register at...")
Is this possible, and if so, how?
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.