"Geir Magnusson Jr." wrote:
>
> David Esposito wrote:
> >
> > Ok, i think there is some sort of b** happening here, but I wanted to see if
> > this rings a bell before I use the bad B word ... ;)
> >
> > #foreach($state in $state_list)
> > $state.Name blah blah blah $state.ID
> > #if($state.ID == $selected_state_id)selected#end
> > #end
> >
> > it seems that if selected_state_id is not defined in the context, the whole
> > processing of the page ends ... Velocity just up and decides to go home for
> > the evening ... no warnings, no error messages ... ;) ...
>
> That would be a bug then. :)
It's clear to me what's going on. I will fix now...
It will evaluate to false, and log it if either the LHS or RHS isn't in
the context.
Sound good y'all?
geir
--
Geir Magnusson Jr. [EMAIL PROTECTED]
Developing for the web? See http://jakarta.apache.org/velocity/