If it’s a checkbox field, you usually can just use...
# advancedpdf
s
If it’s a checkbox field, you usually can just use it directly as a boolean value, so try just
<#if statement.openonly>
. If that does not work, the problem with the two above statements is that they are using a single equal sign, which is the assignment operator, not the equals comparator. You need to use double equals to get a comparison,
statement.openonly == 'T'
or
statement.openonly == true