Re: [htmltmpl] how to determine if tmpl_var exists in a loop?
Brought to you by:
samtregar
From: Roger B. W. <ro...@fi...> - 2004-04-16 14:01:54
|
On Fri, Apr 16, 2004 at 08:39:05AM -0500, Kapoor, Nishikant wrote: >I have used >if ($template->query(name => 'tmplVar')) {} >to check if a tmpl_var exists in the template or not. >How/what do I use for a tmpl_var inside a tmpl_loop? Recurse or append parameters. See the documentation, under: "query()" also allows you to get a list of parameters inside a loop (and inside loops inside loops). which explains it very clearly. Roger |