<@U5C7QRUR3> use freemarker `&lt;#if&gt; ... &lt;/...
# suitescript
g
@kristopherw use freemarker
<#if> ... </#if>
, or if you are actually scripting a custom print action it might be easier to place the logic in the script instead of the PDF XML