velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David A. Cruwys" <david.cru...@moneytech.com.au>
Subject Checking for the 1st or Last element in Velocity
Date Thu, 15 Jul 2004 00:22:53 GMT
Given the following macro

#macro( SetupFields )
#foreach( $f in $data.Table.Field )
   @$util.PadRight($f.Name,30)$util.PadRight($f.Type,30)=null
#end
#end

How can I determin if I'm at the 1st or last element in the loop

Cheers Dave

---------------------------------------------------------------------
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