OK, you are right, I wasn't paying much attention there, it's early here in
Oz..!!


I'm still pretty sure <cfif edible EQ true> executes faster, as I have done
tests, and have seen tests out there that state so, even so, I use <cfif
edible> myself.

Taco Fleur
Blog  <http://www.tacofleur.com/index/blog/>
http://www.tacofleur.com/index/blog/
Methodology http://www.tacofleur.com/index/methodology/
0421 851 786
Tell me and I will forget
Show me and I will remember
Teach me and I will learn

-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Friday, 30 January 2004 6:27 AM
To: CF-Talk
Subject: Re: Best practises question

Taco Fleur wrote:
>  
> <cfset arr_fruit=ArrayNew(1)>
> <cfset arr_fruit[1]="apple">
> <cfset arr_fruit[2]="banana">
> <cfset arr_fruit[3]="pear">
> <cfset edible = ArrayAppend(arr_fruit,"pineapple")>
>  
> I also not sure that your example really displays correctly, i.e. you are
> creating an array and in the cfif example you check a simple value for
yes,
> true or 1
>  
> <!--- <cfif edible IS "YES"> --->
> or
> <!--- <cfif edible IS true> --->
> or
> <cfif edible IS 1>
> More fruit added to arr_fruit
> <cfelse>
> NO fruit added
> </cfif>
>  
> While it should be
>  
> <!--- <cfif edible[1] IS "apple"> --->

You might want to look up the return type ofArrayAppend().

Jochem

--
I don't get it
immigrants don't work
and steal our jobs
     - Loesje
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to