Re: Writing efficient CFIF statements

2002-07-16 Thread Jon Hall
e" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 3:30 PM Subject: RE: Writing efficient CFIF statements > We're getting mired in semantics. We're technically both correct. > > > but we can continue the conversation, i

RE: Writing efficient CFIF statements

2002-07-16 Thread Christopher Olive
Subject: RE: Writing efficient CFIF statements sounds like Christopher is got a new problem with CFIF/IIF??? too much coffee??? :) -Original Message- From: Christopher Olive [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 3:30 PM To: CF-Talk Subject: RE: Writing efficient CFIF

RE: Writing efficient CFIF statements

2002-07-16 Thread Joe Eugene
sounds like Christopher is got a new problem with CFIF/IIF??? too much coffee??? :) -Original Message- From: Christopher Olive [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 3:30 PM To: CF-Talk Subject: RE: Writing efficient CFIF statements We're getting mired in sema

RE: Writing efficient CFIF statements

2002-07-16 Thread Joe Eugene
Basically 1 Line CODE VS 5 Lines CODE -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 3:16 PM To: CF-Talk Subject: Re: Writing efficient CFIF statements It is, but it's secondary to the IIF() speed problem itself. DE() only comp

RE: Writing efficient CFIF statements

2002-07-16 Thread Christopher Olive
We're getting mired in semantics. We're technically both correct. but we can continue the conversation, if you like. :) -Original Message- From: Hal Helms [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 10:50 AM To: CF-Talk Subject: RE: Writing efficient CFIF

Re: Writing efficient CFIF statements

2002-07-16 Thread Michael Dinowitz
Message- > From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 2:44 PM > To: CF-Talk > Subject: Re: Writing efficient CFIF statements > > > While the while issue of DE verses staged quotes is an important one, the > speed difference between IIF(

RE: Writing efficient CFIF statements

2002-07-16 Thread Joe Eugene
ColdFusion Developer [EMAIL PROTECTED] -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 2:44 PM To: CF-Talk Subject: Re: Writing efficient CFIF statements While the while issue of DE verses staged quotes is an important one, the speed di

Re: Writing efficient CFIF statements

2002-07-16 Thread Michael Dinowitz
("even")# > > > > Joe > Certified Advanced ColdFusion Developer > [EMAIL PROTECTED] > > -Original Message- > From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 1:28 PM > To: CF-Talk > Subject: Re: Writing efficient CFIF stat

RE: Writing efficient CFIF statements

2002-07-16 Thread Joe Bastian
uot;)# Joe Certified Advanced ColdFusion Developer [EMAIL PROTECTED] -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 1:28 PM To: CF-Talk Subject: Re: Writing efficient CFIF statements Actually, the main problem with using IIF() now is tha

Re: Writing efficient CFIF statements

2002-07-16 Thread Michael Dinowitz
Actually, the main problem with using IIF() now is that few people know how to use it right. The double evaluation issue, using DE vs. double quoting, etc. I'm going to have to revise my paper on it and get it out there again. :) http://www.fusionauthority.com/iif.cfm > I wouldn't declare it d

Re: Writing efficient CFIF statements

2002-07-16 Thread Michael Dinowitz
I'm declaring it dead for the sake of it not being an issue anymore. My original post and times for it showed IIF() being half as fast as CFIF. This is no longer true. Readability is a totally different issue. http://www.fusionauthority.com/alert/index.cfm?alertid=9#Tech1 http://www.fusionauth

Re: Writing efficient CFIF statements

2002-07-16 Thread todd
I wouldn't declare it dead for the sake of readability. That above anything is a good reason not to use it. ~Todd On Tue, 16 Jul 2002, Michael Dinowitz wrote: > I really wish that people using my documents (originally posted in issues of FA) put >down where they got the information from. I s

Re: Writing efficient CFIF statements

2002-07-16 Thread Michael Dinowitz
>remember where. That using IIF() is slower. > > > > > -- > > > From: Adrian Lynch[SMTP:[EMAIL PROTECTED]] > > > Sent: 16 July 2002 11:36 > > > To: CF-Talk > > > Subject: RE: Writing efficient CFIF statements > &

Re: Writing efficient CFIF statements

2002-07-16 Thread S . Isaac Dealey
>> >> True, I have looked at Fusebox, but at the moment I am not building a >> Fusebox app, but I see your point and I should use what I know about > Fusebox >> and apply it to my none Fusebox code. >> > > Start out with the techniques in FB2 and you'll get your coding standards > to > something l

RE: Writing efficient CFIF statements

2002-07-16 Thread Kola Oyedeji
Sorry I meant: ... Kola -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 14:49 To: CF-Talk Subject: RE: Writing efficient CFIF statements > Has this always worked? > > I'm sure I tried it in an earlier version of cf (4.5) I think, &

Re: Writing efficient CFIF statements

2002-07-16 Thread Stephen Moretti
> > True, I have looked at Fusebox, but at the moment I am not building a > Fusebox app, but I see your point and I should use what I know about Fusebox > and apply it to my none Fusebox code. > Start out with the techniques in FB2 and you'll get your coding standards to something like you're try

RE: Writing efficient CFIF statements

2002-07-16 Thread Joe Bastian
, Stephen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 11:13 AM To: CF-Talk Subject: RE: Writing efficient CFIF statements ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message

RE: Writing efficient CFIF statements

2002-07-16 Thread Adams, Stephen
app, but I see your point and I should use what I know about Fusebox and apply it to my none Fusebox code. > -- > From: Douglas Brown[SMTP:[EMAIL PROTECTED]] > Sent: 16 July 2002 16:20 > To: CF-Talk > Subject: Re: Writing efficient CFIF statements

Re: Writing efficient CFIF statements

2002-07-16 Thread Douglas Brown
Email: [EMAIL PROTECTED] - Original Message - From: "Adams, Stephen" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 8:13 AM Subject: RE: Writing efficient CFIF statements > *

RE: Writing efficient CFIF statements

2002-07-16 Thread Adams, Stephen
help me design better code. Stephen > -- > From: Joe Bastian[SMTP:[EMAIL PROTECTED]] > Sent: 16 July 2002 16:06 > To: CF-Talk > Subject: RE: Writing efficient CFIF statements > > The LEAST no of "CFIF" is the route to best code/sp

RE: Writing efficient CFIF statements

2002-07-16 Thread Dave Watts
> If QueryResults is supposed to be a boolean, isn't > it better to make it a boolean? Doesn't that make > it easier to understand the intent of the code? You can certainly make this argument, but it's hard to confuse the intent of code which uses integers to determine boolean values. For example

RE: Writing efficient CFIF statements

2002-07-16 Thread Joe Bastian
ephen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 5:09 AM To: CF-Talk Subject: Writing efficient CFIF statements ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer

Re: Writing efficient CFIF statements

2002-07-16 Thread Douglas Brown
true...my bad Douglas Brown Email: [EMAIL PROTECTED] - Original Message - From: "S. Isaac Dealey" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 7:55 AM Subject: Re: Writing efficient CFIF statements > > c

Re: Writing efficient CFIF statements

2002-07-16 Thread S . Isaac Dealey
> couldn't you just say... > You would only ever get one result from the evaluation... because the length of recordcount will never be less than 1 ... i.e. is the same as ... works tho... Isaac Dealey www.turnkey.to 954-776-0046 __

RE: Writing efficient CFIF statements

2002-07-16 Thread Hal Helms
t: RE: Writing efficient CFIF statements but it IS a boolean. 1 and 0 are boolean yes and no (in most languages). chris olive -Original Message- From: Patrick McElhaney [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 8:59 AM To: CF-Talk Subject: RE: Writing efficient CFIF statements

Re: Writing efficient CFIF statements

2002-07-16 Thread Douglas Brown
couldn't you just say... Douglas Brown Email: [EMAIL PROTECTED] - Original Message - From: "Patrick McElhaney" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 5:20 AM Subject: RE: Writing efficie

RE: Writing efficient CFIF statements

2002-07-16 Thread Christopher Olive
but it IS a boolean. 1 and 0 are boolean yes and no (in most languages). chris olive -Original Message- From: Patrick McElhaney [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 8:59 AM To: CF-Talk Subject: RE: Writing efficient CFIF statements If QueryResults is supposed to be

RE: Writing efficient CFIF statements

2002-07-16 Thread Dave Watts
> Has this always worked? > > I'm sure I tried it in an earlier version of cf (4.5) I think, > and it didn't work. > > Can anyone confirm this? If by "this", you mean the fact that CF evaluates non-zero values as true and zero as false, yes, that's worked in every version of CF back to at leas

RE: Writing efficient CFIF statements

2002-07-16 Thread Kola Oyedeji
quot; <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 12:20 AM Subject: RE: Writing efficient CFIF statements > Clean and fast: > > > > Patrick > __ Signup for the Fusion Authority news alert and kee

RE: Writing efficient CFIF statements

2002-07-16 Thread Patrick McElhaney
July 16, 2002 8:25 AM > To: CF-Talk > Subject: Re: Writing efficient CFIF statements > > > This thread is odd. As Tim pointed out earlier, any non-zero > value evaluates as TRUE so you can just say > and be done with it. > That's far cleaner for the eye. > > >

Re: Writing efficient CFIF statements

2002-07-16 Thread Matthew Walker
OTECTED]> Sent: Wednesday, July 17, 2002 12:20 AM Subject: RE: Writing efficient CFIF statements > Clean and fast: > > > > Patrick > __ This list and all House of Fusion resources hosted by CFHosting.com.

RE: Writing efficient CFIF statements

2002-07-16 Thread Patrick McElhaney
Clean and fast: Patrick __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/fa

RE: Writing efficient CFIF statements

2002-07-16 Thread Tony Gruen
s, Stephen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 3:55 AM To: CF-Talk Subject: RE: Writing efficient CFIF statements ** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath th

Re: Writing efficient CFIF statements

2002-07-16 Thread Tim Painter
I just tested it on MX and it works the same. Tim P. - Original Message - From: "Stephen Moretti" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 7:05 AM Subject: Re: Writing efficient CFIF statements > &

Re: Writing efficient CFIF statements

2002-07-16 Thread Stephen Moretti
> Looks cleaner, but isn't it slower? > > > > > Any opionions on: > > > > > DE("True"))> > > IIF is supposed to be a little inefficient, but its like all these things. Its probably take a couple of milliseconds longer, so it really makes no difference. I'm not sure I agree with the "looks clean

RE: Writing efficient CFIF statements

2002-07-16 Thread Adams, Stephen
heers. > -- > From: Tim Painter[SMTP:[EMAIL PROTECTED]] > Sent: 16 July 2002 11:51 > To: CF-Talk > Subject: Re: Writing efficient CFIF statements > > IIF is slower. Couldn't you just do: > > > > If recordcount is 0, it would

RE: Writing efficient CFIF statements

2002-07-16 Thread Todd
-- > > From: Adrian Lynch[SMTP:[EMAIL PROTECTED]] > > Sent: 16 July 2002 11:36 > > To: CF-Talk > > Subject: RE: Writing efficient CFIF statements > > > > Looks cleaner, but isn't it slower? > > > > -Original Message-

Re: Writing efficient CFIF statements

2002-07-16 Thread Tim Painter
IIF is slower. Couldn't you just do: If recordcount is 0, it would be false anyway - Original Message - From: "Adrian Lynch" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 6:36 AM Subject: RE: Writing effici

RE: Writing efficient CFIF statements

2002-07-16 Thread Adams, Stephen
agree with Adrian that it could be slower. I have heard somewhere can't remember where. That using IIF() is slower. > -- > From: Adrian Lynch[SMTP:[EMAIL PROTECTED]] > Sent: 16 July 2002 11:36 > To: CF-Talk > Subject: RE: Writing efficient CFIF s

RE: Writing efficient CFIF statements

2002-07-16 Thread Adrian Lynch
Looks cleaner, but isn't it slower? -Original Message- From: Hugo Ahlenius [mailto:[EMAIL PROTECTED]] Sent: 16 July 2002 11:31 To: CF-Talk Subject: RE: Writing efficient CFIF statements Any opionions on: ? Cheers,

RE: Writing efficient CFIF statements

2002-07-16 Thread Hugo Ahlenius
| To: CF-Talk | Subject: Re: Writing efficient CFIF statements | | | Stephen, |I usually like to set things either "true" or "false". | (or 1 or 0). The true or false is a little more visual, I | think -- so to use your example, I would do it like: | | | | |

Re: Writing efficient CFIF statements

2002-07-16 Thread Tim Painter
. - Original Message - From: "Adams, Stephen" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 5:08 AM Subject: Writing efficient CFIF statements >

Writing efficient CFIF statements

2002-07-16 Thread Adams, Stephen
** WESTMINSTER CITY COUNCIL Please refer to the disclaimer beneath this message ** Hi, I am trying to put more structure into my CF code. My idea is to separat