AnsweredAssumed Answered

Email Script - "starts with" operator

Question asked by af03dad167e46eb4803ce730cc12610c4dc6019f on Apr 24, 2014
Latest reply on Apr 25, 2014 by af03dad167e46eb4803ce730cc12610c4dc6019f
Hi all,

I'm trying to create a logic in an email script token that prints a from-email-address based on the Postcode field. So it should be something like:

#if ("$lead.PostalCode" starts with "1")
salesrep1@company.com
#else
salesrep2@company.com
#end

Any idea on how to accomplish that? I've read through the Velocity User Guide but didn't find anything useful. Oh, and postcode is a text field in our install so it seems that something like 

#if ("$lead.PostalCode" < "50000")

seems not to work.

Thanks,
Michael

Outcomes