I'm not an ASP guy, but the previous guy was.

>From what I can tell, in ASP, "all" variables exist.  If they were not
assigned a value, then they will be an empty string (or whatever
equivalent for complex variables).

He just tested for x <> "" or x = "" and then did what he had to do.

M!ke 

-----Original Message-----
From: Ray Champagne [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 18, 2006 12:54 PM
To: CF-Talk
Subject: RE: equivalent of isDefined in ASP?

Yea, that won't quite work, and what you're doing really isn't like
cfparam, is it?  Your suggestion is more like cfset.  Here is my loose
logic:

If the variable is passed into the page, then use it's value, if not,
set it to a default (like cfparam).  If I explicitly set it to "", then
it will overwrite the variable being passed into the page...thus
defeating the purpose.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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/groups/CF-Talk/message.cfm/messageid:257239
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to