Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
An Agency has created this Email Script Token for us:
My question: What does the highlighted mean?
#if ( $lead.Salutation.matches("^(?i:m)$") && !$lead.LastName.isEmpty() )
Dear Mr ${lead.LastName}##
#elseif ( $lead.Salutation.matches("^(?i:f)$") && !$lead.LastName.isEmpty() )
Dear Ms ${lead.LastName}##
#else
Dear Sir or Madam##
#end
Solved! Go to Solution.
that's regular expressions
the ?i: refers to a case-insensitive comparison
the ^..$ refers to start and end of string
=> the regex will match to m / M in the first condition and f / F in the 2nd
View solution in original post
Views
Likes
Replies