If so maybe a MM rep could step in to explain.....
-Adam
> -----Original Message-----
> From: Adrocknaphobia [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 3, 2004 08:02 PM
> To: 'CF-Talk'
> Subject: Re: <cfscript> != <cftags>
>
> Well, before posting i stripped out the if(this.error) part and it still didnt work, sides the syntax is dead on anyway.
>
> As for getIterations() it returns a structure with... iteration data. :) If there is an error within getIterations() it can raise an error and updates the this.error flag.
>
> -Adam
>
> > -----Original Message-----
> > From: Ubqtous [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 3, 2004 07:36 PM
> > To: 'CF-Talk'
> > Subject: Re: <cfscript> != <cftags>
> >
> > Adrocknaphobia,
> >
> > 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]

