[ic] Database Handle and Global Subs

Mark Johnson interchange-users@lists.akopia.com
Wed Jun 13 13:51:00 2001


I don't know what you've named your parameter in the usertag, but I'll
assume it's 'foo' for the purpose of this example.

Try:

[if scratch print]
[pdfcreate foo="[cgi orders]"]
[/if]


Sheamus Nulty wrote:
> 
> Mark,
> 
> I've taken the global sub pdfcreate out of the [perl] tag and it no longer
> has any problems. The problem I'm having now is how do I execute this tag
> based on a particular variable being set. I've tried the following
> 
> [if scratch print ]
> [pdfcreate [cgi orders] ]
> [/if]
> 
> plus various other combinations however the if statement constantly just
> causes the information after it to be printed as if its HTML. If I don't
> have the global sub in perl what other method is there to do a comparison
> other than above.
> 
> Thanks
> 
> Sheamus


-- 
Mark Johnson
Senior Systems Architect - Professional Services
Red Hat, Inc.
E-Business Solutions
markj@redhat.com
703-456-2912