I have a list which I build in zul file.
<listbox id="someId" model="@load(vm.searchResults)" selectedItem="@bind(vm.selectedItem)" vflex="1" multiple="true">
    <listhead>
        <listheader label="${labels.l1}" width="150px" align="center"/>
        <listheader label="${labels.l2}" width="150px" align="center"/>
        <listheader label="${labels.l3}" width="100px" align="center"/>
    <listheader label="${labels.l4}" width="400px" align="center"/>
    </listhead>
    <template name="model">
        <listitem style="text-align: left;">
            <listcell style="word-wrap: break-word; text-align: left;">
                <label value="@load(each.l1)"/>
            </listcell>
            <listcell style="word-wrap: break-word; text-align: left;">
                <label value="@load(each.l2)"/>
            </listcell>
            <listcell style="word-wrap: break-word; text-align: left;">
                <label value="@load(each.l3)"/>
                <a action="" label="should be displayed when some param is equals to 3 " if="{each.someParam=='3'}"/>
            </listcell>
            <listcell style="text-align: left;">
                <label value="@load(each.l4)"/>
            </listcell>
        </listitem>
    </template>
</listbox>
I need to display a element when each some param is 3. How do I get it?
<a action="" label="should be displayed when some param is equals to 3 " if="{each.someParam=='3'}"/>
I checked this How to use if="some condition" in ZK template tag
But it did not help me.
I also tried
<a action="" label="should be displayed when some param is equals to 3 " if="{@(each.someParam)=='3'}"/>
Did not work either. '3' or 3 does not change anything. If I remove if condition a element is displayed. But I want to display it only when it meets if condition.
Please help me