velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Mora <d_m...@yahoo.com>
Subject know when i'm in the last element of a set
Date Mon, 26 Mar 2001 15:12:58 GMT

Hi!

i'm new to Velocity. I'm trying to generate SQL, so i
need to know when i have to add the "comma" for the
last parameter, something like that:

#foreach ( $table in $sqlTables )
CREATE TABLE $table.name (
 #foreach( $column in $table.columns )
   $column.name $column.type,
 #end
);
#end

But how i can detect when i don't have to add the ","
for the last column?

Thank you!


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Mime
View raw message