Try

(#foreach($element in $list)$element#if($velocityCount==list.size()))#else,#end

Starts with a (, then the element followed by a comma if we're not on
the last element, followed by a ) if this is the last element.

Barbara Baughman
X2157

On Wed, 28 Jan 2004, White, Joshua A (HTSC, CASD) wrote:

> Hello everyone,
>
> I am just starting with velocity.  I am trying to generate a comma delimited
> list (method arguments) and would like it to appear like this:
>
> (item1, item2, item3)
>
> I can't figure out how to not add a comma if we are on the last element of
> our list.  Could someone help me out?
>
> Regards,
>
> Joshua
>
>
> This communication, including attachments, is for the exclusive use of
> addressee and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, any use, copying,
> disclosure, dissemination or distribution is strictly prohibited. If
> you are not the intended recipient, please notify the sender
> immediately by return email and delete this communication and destroy all copies.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to