>All expressions a, b and c are evaluated... ...in an iif() statement even worse!
silly me, cutting and pasting from the macromedia reference like that. http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/funct117.htm -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Adam Cameron Sent: 26 May 2005 16:11 To: CFCDev@cfczone.org Subject: RE: [CFCDev] CFC wish-list 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 cfcdev@cfczone.org 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/cfcdev@cfczone.org ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to cfcdev@cfczone.org 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/cfcdev@cfczone.org