Skip to main content
Robb_Barrett
Level 10
August 3, 2016
Resuelto

Need debug help: Email script elseif

  • August 3, 2016
  • 5 respuestas
  • 2392 visualizaciones

Error received when trying to approve an email. Not sure what I'm doing wrong here

An error occurred when procesing the email Body!

Encountered "#elseif" near

<pre>if(${lead.HCIT_Product_Interest__c}.includes("Radiology - VAR")) 
Sarah
#elseif(${lead.HCIT_Product_Interest__c}.includes("Radiology")) 
Christina
#elseif(${lead.HCIT_Product_Interest__c}.includes("Cardiology")) 
Suzanne


Este tema ha sido cerrado para respuestas.
Mejor respuesta de SanfordWhiteman

if

isn't valid VTL.

#if

is what you want.

5 respuestas

SanfordWhiteman
Level 10
August 3, 2016

if

isn't valid VTL.

#if

is what you want.

Robb_Barrett
Level 10
August 3, 2016

Stared at that for a while and didn't notice that.  Grrr.

OK, now I get this:

Lexical error, Encountered: "i" (105), after : "." at *unset*[line 77, column 128] near

#elseif(${lead.HCIT_Product_Interest__c}.includes("Radiology")) 
Christina 
#elseif(${lead.HCIT_Product_Interest__c}.includes("Cardiology")) 
Suzanne 
#elseif(${lead.HCIT_Product_Interest__c}.in
Robb Barrett
SanfordWhiteman
Level 10
August 3, 2016

What's your full email script token?