> I would imagine that if you don't put quotes around the
> variable in your IsDefined(), ColdFusion will evaluate
> the variable and check to see if that is defined rather
> than the variable itself. If that's the case, I would
> assume it would always evaluate to true.

No, actually, it's more likely to evaluate to false in that case.

<cfset myvar = "foo">
<cfif IsDefined("myvar")> <!--- this will evaluate to true --->
        true
<cfelse>
        false
</cfif>
<cfif IsDefined(myvar)> <!--- this will evaluate myvar to foo, then look for
a variable named foo --->
        true
<cfelse>
        false
</cfif>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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