Email Script Token Troubles
Hello all,
I am trying to get 3 (A,B,C) different phone numbers to appear in an email based on an email script token and have hit a wall trying to find the issue in my code. When I try to preview a specific person, I get defaulted to the 3rd phone number. The referring fields (A and B) are text fields and Standard Objects in our Database.
##check if the lead is an A
#if(${lead.XX_A_relationshipmanagertext} =="name 1"#OR"name 2")
##if the lead has name or name, use the phone number A 'XXX-XXX-XXXX'
#set(${lead.XX_A_relationshipmanagertext} = "XXX-XXX-XXXX ")
##check if the lead is an B
#elseif(${lead.XX_B_relationshipmanagertext} ==" name 3 "#OR" name 2 "#OR " name 4 "#OR" name 5")
##if the lead has name, or name, or name, or name, use the phone number B 'XXX-XXX-XXXX'
#set(${lead.XX_B_relationshipmanagertext} = "'XXX-XXX-XXXX ")
#else
##otherwise use phone number C 'XXX-XXX-XXXX'
#set(${lead.XX_B_relationshipmanagertext} #OR ${lead.XX_A_relationshipmanagertext} == "XXX.XXX.XXXX")
#end
##print the phone number
(${lead.XX_B_relationshipmanagertext} #OR ${lead.XX_A_relationshipmanagertext})