In the following snippet, what is better form for representing a true statement in the CFIF (ie. "YES", true, or 1)?
or
or
More fruit added to arr_fruit
NO fruit added
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
David Adams said:
> In the following snippet, what is better form for representing a
> true statement in the CFIF (ie. "YES", true, or 1)?
>
>
>
>
>
>
>
>
> or
>
> or
>
Jochem
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Hi David
As far as I'm aware the best practice in this example is actually:
More fruit added to arr_fruit
NO fruit added
Regards
Steve.
-Original Message-
From: David Adams [mailto:[EMAIL PROTECTED]
Sent: 29 January 2004 12:59
To: CF-Talk
Subject: Best practises question
I
I've read several places that it's preferable to use the following syntax:
-Original Message-
From: David Adams [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 7:59 AM
To: CF-Talk
Subject: Best practises question
In the following snippet, what is bette
-Talk
Subject: Best practises question
In the following snippet, what is better form for representing a true
statement in the CFIF (ie. "YES", true, or 1)?
or
or
More fruit added to arr_fruit
NO fruit added
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscrib
Can't you just use
Qasim
-Ori
ginal Message-
From: David Adams [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 7:59 AM
To: CF-Talk
Subject: Best practises question
In the following snippet, what is better form for representing a true
statement in the CFI
Rasheed [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 9:38 AM
To: CF-Talk
Subject: RE: Best practises question
Can't you just use
Qasim
-Ori
ginal Message-
From: David Adams [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 7:59 AM
To: CF-Talk
Sub
Not sure what the best practice is...
But I have frequently used:
Actually, I prefer to use whenever possible.
so it would be:
arr_fruit=ArrayNew(1);
arr_fruit[1]="apple";
arr_fruit[2]="banana";
arr_fruit[3]="pear";
edible = ArrayAppend(arr_fruit,"pineapple");
if ( edible )
Is the easiest to write, however not the fastest to execute
executes faster
And its best practice to always scope your variables.
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 fo
ry 29, 2004 3:02 PM
To: CF-Talk
Subject: RE: Best practises question
Is the easiest to write, however not the fastest to execute
executes faster
And its best practice to always scope your variables.
I also not sure that your example really displays correctly, i.e
Taco Fleur wrote:
>
>
>
>
>
>
>
> 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
>
>
> or
>
> or
>
> More fruit added to arr_fruit
>
> NO fruit added
>
>
> While it
/
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
Is there a better way of writing:
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Adams [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 19, 2004 11:18 AM
To: CF-Talk
Subject: Another Best practises question
Is there a better way of writing:
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
t;[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, February 19, 2004 1:49 PM
Subject: RE: Another Best practises question
> Probably not. There might actually be a more compact way of doing this
> test, but the great thing about the code you posted is t
15 matches
Mail list logo