7 Replies Latest reply on Apr 24, 2017 2:02 PM by Sanford Whiteman

    Velocity Script Not Working - Boolean values and Dynamic emails

      Hi All,


      I'm getting frustrated with velocity scripting in Marketo!


      So I'm building a template that includes a velocity script to show some segments of the email depending on one of the leads boolean values (in this case a tick box)


      Here is an example of the code I'm trying to create:


      #if (${lead.iASNewsletterGrowth} == "0")


      (Some HTML content)




      #if (${lead.iASNewsletterGrowth} == "1")


      (Some HTML content)




      Now the problem is that instead of showing one or the other depending on the lead's info, it's simply not showing either shouldn't this be impossible?


      Any help would be great, please see the attached full HTML file for reference.