velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johnny Dynn <>
Subject String to Int
Date Fri, 06 Dec 2002 18:08:48 GMT
Newbie question....

Say I have a string in velocity...

#set($num_loop = "5")

How can I convert that so I can, for example, use it
in a foreach loop?


#foreach( $i in [1..$num_loop] )

I know I can just set the loop_count to 1 instead of
"1" but I was just curious if there some way.



Post your free ad now!

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message