Show a link in advanced pdf if the field has value. Sample code is adding below.
<#if record.custbody_jj_stripepaymentlink?has_content>
click here
</#if>

so, it will check ‘record.custbody_jj_stripepaymentlink’ field has value or not. If there is value, then it will show the field in the template.