> However, Adam Cameron, once made an important addition.
Good god! I'm being cited.
The problem with the OP's code is that the <cfif> is
being generated at
runtime, and any CFML code one expects to execute needs to be
there at
COMPILE time. CFML is not executed at runtime, so one cannot
generate CFML
at runtime and hope for it to execute. That's not how it
works. And even
if it was, one cannot expect it to be interpretted simply by
*outputing*
it. As BKBK said: all you're doing is sending a string to the
browser (or,
in this case, the PDF generator) which happens to have some
CFML in it.
You need to revise your logic / approach.
--
Adam