Thursday 15 March 2007 6:24:40 am
Hi! I'm trying to get a price to show in a template only if the value is more than 0. I have tried the following code with no luck. The ezprice attribute is called "pris".
{if $node.object.data_map.pris.content.data_float|not(0)}
Pris: {attribute_view_gui attribute=$node.object.data_map.pris}
{/if}
This code shows the price even if it is 0. What stupid mistake am I doing here? :)
|