Try `<#if record.custbody19>Proforma Invoice...
# advancedpdf
m
Try
<#if record.custbody19>Proforma Invoice<#else>${record@title}</#if>