Solved
Email Script - "starts with" operator
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
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