Need debug help: Email script elseif | Community
Skip to main content
Robb_Barrett
New Participant
August 3, 2016
Solved

Need debug help: Email script elseif

  • August 3, 2016
  • 1 reply
  • 2382 views

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


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

if

isn't valid VTL.

#if

is what you want.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
August 3, 2016

if

isn't valid VTL.

#if

is what you want.

Robb_Barrett
New Participant
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
New Participant
August 3, 2016

What's your full email script token?