Only for ANDs. 

ORs are checked until one is true. Once one of the conditions is found to be
true, the whole statement is true. Only when ALL conditions are false is the
statement false... 

....good 'ol truth tables heh

..:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED] 

CF evaluates the expressions in order, left to right. If one is false, it
halts processing.

-----Original Message-----
From: Michael E. Carluen [mailto:[EMAIL PROTECTED]

Hello all.

On a cfif statement:
<cfif (condition1) OR (condition2) OR (condition3)>

Question: If condition1 is true, will cf continue to evaluate conditions 2
and 3?

The concern is that if this scenario occurs, and conditions2 and 3 are UDFs
with queries, it would unnecessarily spend the system resources for
processing those useless conditions.

Thanks in advance for confirming.

Michael

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006
 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249236
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to