Forums / Setup & design / Testing an attribute value
radoine d
Tuesday 14 June 2005 7:59:32 am
Hi
I have created a class containing an image. In the template attached to the content of this class, I need to test if the content of the attribute image is empty or not, i.e if there is an image to display. Is it possible? If possible how to do it?In more general, Is it possible to test if an attribute of a class is set or not?
Thanks for reading and helping me
François Xavier Lacroix
Tuesday 14 June 2005 8:47:46 am
hello, I think you can try this : http://www.ez.no/ez_publish/documentation/development/libraries/ez_template/functions/section/if_then_else_statements http://www.ez.no/community/forum/setup_design/if_then_else_and_is_emptyTo see 'how to' use the if-then-else and is_empty statement.
More precise, i think that this problem has been discussed in http://www.ez.no/community/forum/general/checking_if_an_attributes_value_ie_empty
good luck.