I'd say that first, it looks like your if and else...
# advancedpdf
s
I'd say that first, it looks like your if and else clauses are inverted. It's going to display
${record.tranid}
if
record.createdfrom
or
record.createdfrom.tranid
are not null.