Kevin Waterson wrote:
> 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?
It certainly is :-)
{if is_set( $var )}{$var}{/if}
And here's the documentation:
http://ezcomponents.org/docs/api/trunk/Template_functions.html#is-set
Regards,
Hans
--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components
