-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
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
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
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
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
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
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
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
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
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
, 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
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
; 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
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
-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
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
-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
-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
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
19 matches
Mail list logo