Re: non-empty list test

"Jonathan Revusky" <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
I think that ?has_content is probably what you want.

JR

On Sun, Oct 26, 2008 at 6:21 PM, Leos Literak <[email protected]> wrote:
> Hi,
>
> quite stupid question for such long time freemarker user :-)
>
> What is the best way to find out whether potentionally missing sequence
> is not empty?
>
> I used to use: (list?if_exists?size > 0)
> I never know whether exists operator will for empty list return true (as
> I expect) or not. So I use the trick with size, which is quite long to
> write. The documentation does not help there, so I would have to test
> it. I lack ?empty built-in: (list!?empty) in new syntax ..
>
> Leos
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.