Forums / Developer / How can I use conditional control(if) with datatypes(enum)?

How can I use conditional control(if) with datatypes(enum)?

Author Message

Daniel Lopes

Monday 15 June 2009 11:43:37 am

Hi there,

I created a new class in my site and I would like to print a css class on my template.

{if eq($node.object.data_map.my_attribute.output,'css_class')}
<print this>
{else}
<or print this>
{/if}

Thanks