You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "David A. Cruwys" <da...@moneytech.com.au> on 2004/07/15 02:22:53 UTC
Checking for the 1st or Last element in Velocity
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