David B
07/04/2023, 3:58 AM<#if record.field?has_content>prefix: ${record.field}</#if>
or ${record.field?has_content?then('prefix: '+record.field,'')}
you can leverage the string built-in ?ensure_starts_with/?ensure_ends_with with a regexp pattern instead:
${record.field?ensure_starts_with('^$','prefix: ')
David B
07/04/2023, 3:59 AM<#if>
)