Sorry, I should have checked the docs first. Anyway, thanks for the help.
This is exactly what I was looking for
if ($template->query(name => ['tmplLoop', 'tmplVar'])) {}
Thanks
Nishi
> -----Original Message-----
> From: Roger Burton West [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 16, 2004 9:02 AM
> To: H::T (E-mail)
> Subject: Re: [htmltmpl] how to determine if tmpl_var exists in a loop?
>
>
> 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
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Html-template-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/html-template-users
>
>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users