Maybe I should restate. What is the perl template toolkit directive equivalent of:
if (defined $x->{y})
-- or --
if (exists $x->{y})
Thanks.
Jonathan Mangin <[EMAIL PROTECTED]> wrote:
Jonathan Mangin <[EMAIL PROTECTED]> wrote:
[% IF x %]or[% IF x == 'foo' %]Combining constructs would be redundant.----- Original Message -----From: John SmithSent: Tuesday, July 19, 2005 4:02 PMSubject: [Templates] checking for defined and exists in a templateSuppose I want to do an include only if something is defined,how do I do it?[% IF x.defined and x eq "foo" %][% INCLUDE myfile %][% END %]something like that? can't seem to locate it in theman pages.Thanks.
Start your day with Yahoo! - make it your home page
Start your day with Yahoo! - make it your home page
