Tuesday 25 January 2011 11:48:09 am
Hello Helge,
in your second example, error is throwing any way. To avoid it, you can use this syntax:
{def $my_var=false()}
{if ezhttp_hasvariable( 'my_session_var', 'session' )}
{set $my_var=ezhttp( 'my_session_var', 'session' )}
{if}
{undef $my_var} or, if you prefer have it in one line:
{def $my_var=cond(ezhttp_hasvariable( 'my_session_var', 'session' ), ezhttp( 'my_session_var', 'session' ), false())}
--
Developer at Open Wide
|