79269273

Date: 2024-12-10 18:03:14
Score: 2.5
Natty:
Report link

So may have found a solution to my own question but please feel free to pick holes in it as the conditional statement for an empty First Name field remains untested.

<#assign firstname=Recipient.contact.firstname[0]!""/><#if firstname=="??">Customer<#else>${"${Recipient.contact.firstname[0]}"?replace("[^\w]|_", "", "r")?capitalize}</#if>

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alex