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

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Michael E. Carluen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 08, 2006 1:25 PM
To: CF-Talk
Subject: CFIF multiple condition processing


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




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:249228
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