You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Hans-Georg Müller-Brigg <e_...@gmx.li> on 2008/12/03 11:32:04 UTC
checking a list/array for null
Hi there,
I read the wiki-article(http://wiki.apache.org/velocity/CheckingForNull) about checking for null.
But i still have a problem while checking a list/array for null.
Here is a short code-snibble:
#if($list.size() > 0)
do something
#end
How can I check for null?
#if($!list.size > 0)
or
#if($!{list.size}> 0)
Thanks,
HansB
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org