Forums / General / Variable exists / Comment33572

Author Topic

kracker

The Doctor

Wednesday 31 January 2007 7:40:34 am

Comment33572

I tried Marcin's approach for testing if a variable exists with this code,

{if is_set( ezhttp( 'print', 'get' ) )}x{else}z{/if}

I also read a similar thread,
<i>http://ez.no/community/forum/general/how_to_test_for_existance_of_variable</i>

Yet this approach seems to throw a this error,

Error: eZTemplate:ezhttp    Jan 31 2007 10:31:16    Unknown get variable 'print'

Is it possible to test for a variable in template language in this way without throwing an error?

//kracker

<i>sage francis - sick of waiting tables - i apologize</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/