> Figured it out (taken me months!)
>
> I need to put quotes in, which seems a bit irish to me as all other
> functions (those I can think of off the top of my head) you don't put the
> quotes in when putting in a variable.

OK, here's why it's not stupid to have quotes...
isDefined() replaces ParameterExists(), which required the variable name to
be put in without quotes, in fact, you couldn't (naturally) check for the
existance of a dynamic variable name

isDefined() uses the quotes because it can take dynamic variable names, take
this example;
<cfloop index="i" list="Name,Company,Email,Tel,Fax">
        <cfif isDefined(i)>
                <cfif Evaluate(i) is "">
                        <cfoutput>#i# not completed<br></cfoutput>
                </cfif>
        </cfif>
</cfloop>

Without using an Evaluate() on the first CFIF, you couldn't do this... why
use 2 functions when one will do?

Hope this explains a bit

Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to