Assuming the array is many rows, and one column:

<@rows array=local$myArray><@col 1><ifequal "<@numrows array=local$myArray>" "<@currow>"><@else>,</@if></@rows>

That should do it, you can also simplify with <@if "<@numrows array=local$myarray>" != "<@currow>" true=",">

Robert.



On Wednesday, August 13, 2003, at 04:01 PM, Jim Kass wrote:

Excuse me if I've already asked this (I may have, I don't remember)...

What is the fastest way to turn an array into a string separated by commas,
i.e the opposite of the @TOKENIZE, and equivalent of a "JOIN".


As you can imagine:
<@VAR NAME=about_list SCOPE=domain TYPE="text" APREFIX="" ASUFFIX=""
RPREFIX="" RSUFFIX="," CSUFFIX="" CPREFIX="">
ends up with an extra comma--


Jim Kass Web Developer

--
Forestweb: The Source for Industry Intelligence
Best Content -- Most Relevant -- Best Delivery
http://www.forestweb.com
(310) 553 - 0008


_______________________________________________________________________ _
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf




--


Robert Garcia
President - BigHead Technology
CTO - eventpix.com
2781 N Carlmont Pl
Simi Valley, Ca 93065
ph: 805.522.8577 - cell: 805.501.1390
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/ - http://theradmac.com/

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/maillist.taf

Reply via email to