velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lloyd <subscr...@twilight-systems.com>
Subject Re: POLL: null context attribute values
Date Thu, 15 Jan 2004 23:34:27 GMT
Geir Magnusson Jr wrote:
> Question : if #set could make LHS == null, would anything break in 
> existing templates?  It's a one line fix if not... :)

would this mean that

   #foreach( $lev1 in $topLevelItems )
     #if( $lev1 )  ## should return false if $lev1 is null?
       #set( $lowerLevelItems = $lev1.lowerLevelItems )
       #foreach( $lev2 in $lowerLevelItems )
         #if( $lev2 )
           ## etc
         #end
       #end
     #end
   #end


... would work as intuitively expected if $lev1 and $lev2 occasionally 
contain nulls?



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


Mime
View raw message