Yes you will need to do this... (or set a cfparam default)
You can also perform...
<cfif isDefined("url.group")>
Do this
<cfelse>
Do that
</cfif>
-----Original Message-----
From: Daniel Kessler [mailto:[EMAIL PROTECTED]
Sent: 07 April 2005 11:59
To: CF-Talk
Subject: checking for vars
It seems to me, that to use a url variable (or any type really) that
I have to check for the variable before I can use it, otherwise I
receive an error saying that it doesn't exist. In the example, I
can't just do the interior IF so wherever I use this as a decision
point, there's always two sets of IFs and indents.
Is there a better way?
<cfif StructKeyExists(URL,'group')>
<cfif url.group NEQ 'me'>do something here</cfif>
</cfif>
thanks.
if'n along....
--
Daniel Kessler
Department of Public and Community Health
University of Maryland
Suite 2387 Valley Drive
College Park, MD 20742-2611
301-405-2545 Phone
www.phi.umd.edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201841
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54