<cfif StructKeyExists(URL,'group') AND url.group NEQ 'me'>
do something here
</cfif>
On Apr 7, 2005 11:59 AM, Daniel Kessler <[EMAIL PROTECTED]> wrote:
> 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
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201842
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54