velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hans-Georg Müller-Brigg" <e_mot...@gmx.li>
Subject checking a list/array for null
Date Wed, 03 Dec 2008 12:48:52 GMT
OK, i found it out :-D

Here is a sample code:

old:
#if($myList.size() > 0)
...
#end

new:
if($!myList && ($!myList.size() > 0))
...
#end

Thanks and greets,
Hans
-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message