Does it? I'm assuming you're referring to dynamic variables (from reading your other reply), but my cfif example has a dynamic variable as well.
> -----Original Message----- > From: loathe [mailto:[EMAIL PROTECTED] > Sent: Friday, July 21, 2006 2:37 PM > > But it executes much faster. > > > -----Original Message----- > > From: Munson, Jacob [mailto:[EMAIL PROTECTED] > > Sent: Friday, July 21, 2006 4:22 PM > > > > Here's how I understand iif: If the condition is true, > return the 2nd > > parameter, otherwise return the 3rd. > > > > So in your example, if (didquery and didfind) returns true, the code > > will evaluate getCust.#i#. Otherwise it will evaluate DE(""). > > > > iif is basically just a shorter cfif statement, using your > example iif, > > this would do the same thing: > > <cfif didquery and didfind> > > <cfset temp = evaluate("getCust.#i#")> > > <cfelse> > > <cfset temp = ""> > > </cfif> > > > > But that takes a lot more code. This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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/cf_lists/message.cfm/forumid:4/messageid:247360 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4