Home
TeamSite
How to do a conditional AND in a tpl?
nico
Can someone tell me how i can do a conditional AND in a tpl? it appears checking both names and their values below is a no go.
[HTML]
<a href="{iw_value name='ev.learnmore'/}">Learn More</a>
[/HTML]
Thanks
Find more posts tagged with
Comments
nipper
Fixing post
[PHP]
<a href="{iw_value name='ev.learnmore'/}">Learn More</a>
[/PHP]
nico
So what are my options?
nipper
That is correct, I would try nested if statements to see if some data is not set and you think it should be. Also you could try wrapping everything in parens:
'((....)&&(....))' but that should not be needed
However, you have a CDATA, which may mean you need valid XML and may need to escape the & with &
You should get rid of that requirement.