velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: foreach loop query
Date Mon, 22 May 2006 18:10:13 GMT
use comments

#foreach( $coord in $xyCoords )##
    $coord.yString##
#end

or one line

#foreach( $coord in $xyCoords ) $coord.yString #end

On 5/22/06, Prof. Robert John Lancashire
<robert.lancashire@uwimona.edu.jm> wrote:
> Hi,
>
> is there a way to avoid linefeeds when iterating through the loop?
>
>
> I have a set of XY coordinates that I want to write out as a set
> of individual values on ONE line or say 10-20 values on a SINGLE line.
>
>         #foreach ($coord in $xyCoords)
>             $coord.getYString()
>         #end
>
> gives me one value on separate lines and with 32,000 values that is a lot of lines...
>
> Any help appreciated
>
> Robert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

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