RE: Iif, short circuit evaluation and DE

2001-07-13 Thread Conrad Classen
-Original Message- From: Aidan Whitehall [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 12:55 PM To: CF-Talk Subject: Iif, short circuit evaluation and DE Is there any way to use Iif with (for example) a date time variable retrieved from a database so that if it's define

RE: Iif, short circuit evaluation and DE

2001-07-13 Thread Conrad Classen
My piece sent prior to this would probably work better if made as part of Your query statement to the database. Conrad -Original Message- From: Aidan Whitehall [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 12:55 PM To: CF-Talk Subject: Iif, short circuit evaluation and DE

Iif, short circuit evaluation and DE

2001-07-13 Thread Aidan Whitehall
Is there any way to use Iif with (for example) a date time variable retrieved from a database so that if it's defined, it extracts the Day portion of the date, but if the date is null, uses Day(Now()) instead? If(NOT Len(AccountExpires), DE(Day(Now())), DE(Day(AccountExpires))) When AccountEx

RE: Short Circuit Evaluation

2001-01-17 Thread Jennifer
ll. In short CF has >supported short circuit AND statments for a while, if it's not working for >you I can only mirror the previous reply and suggest looking for typos. > >-Original Message- >From: Eric Dawson [mailto:[EMAIL PROTECTED]] >Sent: January 17, 2001 12:09 &g

RE: Short Circuit Evaluation

2001-01-17 Thread Raymond B.
AND statments for a while, if it's not working for you I can only mirror the previous reply and suggest looking for typos. -Original Message- From: Eric Dawson [mailto:[EMAIL PROTECTED]] Sent: January 17, 2001 12:09 To: CF-Talk Subject: RE: Short Circuit Evaluation hmmm. I never not

RE: Short Circuit Evaluation

2001-01-17 Thread Duane Boudreau
The ability to "lazy" evaluation has been in ColdFusion since v 4.01 Duane > -Original Message- > From: Eric Dawson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 17, 2001 12:05 PM > To: CF-Talk > Subject: Re: Short Circuit Evaluation > > > s

RE: Short Circuit Evaluation

2001-01-17 Thread Ruslan Sivak
I must have been mistaken. I will try to go and see the exact code that was causing that error. Russ -Original Message- From: Aaron Johnson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 10:45 AM To: CF-Talk Subject: RE: Short Circuit Evaluation -BEGIN PGP SIGNED

RE: Short Circuit Evaluation

2001-01-17 Thread Eric Dawson
hmmm. I never noticed. Would have coded a few things differently. I'll check it out tonight. Eric From: "Raymond Camden" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: CF-Talk <[EMAIL PROTECTED]> Subject: RE: Short Circuit Evaluation Date: Wed, 17 Jan 2001

Re: Short Circuit Evaluation

2001-01-17 Thread Eric Dawson
short answer custom tag. longer answer: tell allaire to change the cfif. Eric From: Ruslan Sivak <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: CF-Talk <[EMAIL PROTECTED]> Subject: Short Circuit Evaluation Date: Wed, 17 Jan 2001 10:12:09 -0500 I have had to write this kind

RE: Short Circuit Evaluation

2001-01-17 Thread Jennifer
Right you are. CF 4.0 does not have short-circuit evaluation but if you really are running 4.0 you should probably upgrade to 4.0.1 regardless of this problem. 4.0 thinks Febuary 29th never exists. And other glorious Things That Have Been Corrected(tm). At 10:25 AM 1/17/01 -0500, you wrote

RE: Short Circuit Evaluation

2001-01-17 Thread Tim Painter
, 2001 10:12 AM To: CF-Talk Subject: Short Circuit Evaluation I have had to write this kind of code over and over, and was wondering if there is a better way like in c++, where it does lazy evaluation. This is what I want: do something Of course this fails, since if the variable is not

RE: Short Circuit Evaluation

2001-01-17 Thread JustinMacCarthy
do something do nothing JUstin >-Original Message- >From: Ruslan Sivak [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, January 17, 2001 3:12 PM >To: CF-Talk >Subject: Short Circuit Evaluation > > >I have had to write this kind of code over and ov

RE: Short Circuit Evaluation

2001-01-17 Thread Russel Madere
; some days the bear eats you. > -Original Message- > From: Ruslan Sivak [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 17, 2001 09:12 > To: CF-Talk > Subject: Short Circuit Evaluation > > > I have h

Re: Short Circuit Evaluation

2001-01-17 Thread Ryan
At 10:12 1/17/01 -0500, you wrote: >I have had to write this kind of code over and over, and was wondering if >there is a better way like in c++, where it does lazy evaluation. > >This is what I want: > > >do something > I think this should work? I think I've used this before... Or maybe

RE: Short Circuit Evaluation

2001-01-17 Thread Aaron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey Ruslan, Sure... what you mentioned works for me all the time... Do this Do this However, the loop thing you mentioned probably wouldn't work... you should do as others suggested and set

RE: Short Circuit Evaluation

2001-01-17 Thread Dan G. Switzer, II
Ruslan, Every since CF4.01, CF has supported short-circuit logic. So the you're first example *does* work in CF4.01+. -Dan -Original Message- From: Ruslan Sivak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 10:12 AM To: CF-Talk Subject: Short Circuit Evaluation I

RE: Short Circuit Evaluation

2001-01-17 Thread Aaron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Ruslan, Actually, CF 4.01 and above do support Short Circuit evaluation... maybe you should upgrade. Aaron Johnson, MCSE, MCP+I Allaire Certified ColdFusion Developer MINDSEYE, Inc. 617.350.0339 617.350.8884 66172567 [EMAIL PROTECTED

RE: Short Circuit Evaluation

2001-01-17 Thread Raymond Camden
-Talk > Subject: Short Circuit Evaluation > > > I have had to write this kind of code over and over, and was wondering if > there is a better way like in c++, where it does lazy evaluation. > > This is what I want: > > > do something > > > Of course thi

Short Circuit Evaluation

2001-01-17 Thread Ruslan Sivak
I have had to write this kind of code over and over, and was wondering if there is a better way like in c++, where it does lazy evaluation. This is what I want: do something Of course this fails, since if the variable is not defined, CF stil checks the second condition. In languages