Shinobu Kawai <[EMAIL PROTECTED]> wrote:
> Hi Mike,
> 
> > I suppose in retrospect since Velocity is String-oriented, this behavior 
is
> > to be expected, but it sure seems counter-intuitive that
> > 
> >        #set ($listHasElements = ($list.size() > 0))
> > 
> >        #if ($listHasElements)
> > 
> > for lists containing elements does not work, but
> > 
> >        #if ($list.size() > 0)
> > 
> > does.
> I wonder why it works in my environment?
> 
> #set ($listHasElements = ($list.size() > 0))
> $listHasElements
> 
> should show "$listHasElements", right?  But it was "true".  It worked
> for both 1.4 and CVS HEAD.
> 
> Maybe there's something wrong with your "$list".

Nope, but maybe the behavior changed in 1.4.  I'm using 1.3.1.

The list definitely exists and has elements.

-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to