Velocity Script for Company Name
Hi everyone!
I'm trying to create a velocity script that does the following.
If company name contains (starts with would also be helpful) "University" display the company name as "the University" otherwise display the current company name value.
In my beginner attempts I tried this but I'm obviously missing some critical steps.
#if (!$lead.Company.contains("university")())
#set ($companyName = "the ${lead.Company}")
#else
#set ($companyName = "${lead.Company}")
#end
${companyName}
Any suggestions/feedback is greatly appreciated!