This should get you there:

<cfset list="apple,orange,pear">

<cfscript>
for (i = 1; i lte listLen(list); i = i + 1) {
  element = listGetAt(list, i);
  writeOutput(element);
}
</cfscript>


----- Original Message -----
From: jean-marc bottin <[EMAIL PROTECTED]>
Date: Mon, 28 Jun 2004 09:06:30 -0400
Subject: cfloop and cfscript
To: CF-Talk <[EMAIL PROTECTED]>

Hi,

I have been looking at the documentation at macormedai but i didi not
find any clear explaination on how to do a cfloop for a list in a
cfscript.

How can i do

<cfloop index = "theIndex" list = "theList" delimiters = theDelimiter">

in a cfscript

Thanks,

Jean-Marc________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to