|
Posted by Paul Lalli on June 6, 2007, 7:00 am
Please log in for more thread options
wrote:
> Val Schuman schrieb:> trying to do <TMPL_IF <TMPL_VAR myvar>>do
something</TMPL_IF>
> > is something like this possible? if not, any workarounds?
>
> You want to do this (I think):
>
> <TMPL_IF NAME="myvar">
> do something
> </TMPL_IF>
>
> This prints "do something" if "myvar" is set. If not, the whole
> block will be deleted.
It prints "do something" if "myvar" is set *to a true value*. If it's
set to 0 or "", the block will be skipped.
Paul Lalli
|