From: <rko...@cc...> - 2010-02-06 15:53:11
|
Alternatively for a more old school solution you could try something like this (going by memory): <mak:list from="lapp.budget"/> <c:if test="{mak:lastCount()=0}"> The set is empty! </c:if> Risto Marius Andra <mar...@gm...>: > How about using <mak:value expr='count(lapp.budget) == 0' /> ? > > On 06/02/2010, Viktor Fonić <vf...@gm...> wrote: >> Hello fellow makumbians, >> >> I needed to check wether or not a set is empty. But I couldn't find a code >> anywhere where I looked. >> Can someone help me? >> I tried >> <mak:if test="not empty(lapp.budget)"> >> <mak:if test="lapp.budget != empty"> >> <mak:if test="lapp.budget not empty"> >> <mak:if test="lapp.budget is not empty"> >> <mak:if test="lapp.budget != nil"> >> <mak:if test="lapp.budget != null"> >> >> Also all possibilities with <> instead of !=, but nothing worked. >> Any ideas? |