Yes, it is possible.
Do sth like this:
<?php

$templ->send->yourVar = isset($yourVar)?$yourVar:0;
....
?>

And template code:

{use $yourVar}
{if $var}{$var}{/if}


Cheers
Jaroslaw
> In a template I wish to have a variable that may, or may not be present.
{if $var} $var {/if}
> {if $var} {$var} {/if}
> or something. Is this possible in the template?
> Kevin
> --
> Components mailing list
> [email protected]
> http://lists.ez.no/mailman/listinfo/components




-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to