to="#arrayLen(iterations)#" index="i">" figures out the value of
"arrayLen(iterations)" once and then loops that many times, but a for loop
will reevaluate the test ("i LTE arrayLen(iterations)") each time through
the loop.
That's the only difference I would expect to see, and without knowing what
your getIteration() function does, it cannot be elliminated.
Mark
-----Original Message-----
From: Ubqtous [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 3:49 PM
To: CF-Talk
Subject: Re: <cfscript> != <cftags>
Adrocknaphobia,
On 3/3/2004 at 15:41, you wrote:
A> So, is it safe to say that no one has a clue to why this isn't
A> working?
Did you try Barney's suggestion of setting your arraylen() to a
variable outside the loop?
<cfscript>
count = arrayLen(iterations);
for(i=1;i LTE count; i = i + 1)
{
thisIteration = getIteration(iterations[i]);
if(this.error)return thisRoute;
arrayAppend(thisRoute.iterations, thisIteration);
}
</cfscript>
~ Ubqtous ~
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

