On 3/3/2004 at 14:27, you wrote:
A> <cfscript>
A> for(i=1;i LTE arrayLen(iterations); i = i + 1)
A> {
A> thisIteration = getIteration(iterations[i]);
A> if(this.error)return thisRoute;
A> arrayAppend(thisRoute.iterations, thisIteration);
A> }
A> </cfscript>
A> The tag based approach, which is an exact conversion creates a new
A> array with 2 elements as expected.
A> So anyone have any idea why the tag based approach works but the
A> script version doesn't?
The code seems to be the same... Maybe add {}s to explicitly state the
'then' and 'else' statements:
if(this.error){
return thisRoute;
}else{
arrayAppend(thisRoute.iterations, thisIteration);
}
What does getIteration() do? Is that what generates "this.error"?
~ Ubqtous ~
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

