|
I think Brett already answered this.
if (defined $x->{y}):
[% IF x.y.defined %]
http://tinyurl.com/dapjp (template-toolkit.org)
if (exists $x->{y}):
[% IF x.exists(y) %]
http://tinyurl.com/athme (template-toolkit.org)
|
RE: [Templates] checking for defined and exists in a template
Garrett, Philip (MAN-Corporate) Wed, 20 Jul 2005 08:47:29 -0700
- [Templates] checking for defined and exist... John Smith
- Re: [Templates] checking for defined ... Jonathan Mangin
- Re: [Templates] checking for defi... John Smith
- Re: [Templates] checking for ... Brett Sanger
- Re: [Templates] checking for ... Jonathan Mangin
- Re: [Templates] checking for ... Jonathan Mangin
- RE: [Templates] checking for defined ... Garrett, Philip (MAN-Corporate)
