The IIf function is a shortcut for the following construct:
<cfif condition>
<cfset result = Evaluate(string_expression1)> <cfelse>
<cfset result = Evaluate(string_expression2)> </cfif>
No it's not.
iif(a,b,c)
All expressions a, b and c are evaluated (not in the evaluate() sense,
in the "examined / executed" sense) in an iif() statement.
Compare:
<cfif a>
b
<cfelse>
c
</cfif>
Only one of b or c will ever be evaluated.
--
Adam
This email contains confidential information. If you are not the intended
recipient of this email, please notify Straker Interactive and delete the
email. You are not entitled to use it in any way.
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]