True, but is it better practice to check and define scope?  I would say so. 







-----Original Message-----
From: Adrian Lynch
To: CF-Newbie
Sent: Sat Aug 18 14:05:31 2007
Subject: RE: What does this line do? session.siteSection = "#sec#"

But they might not want to only check in the variables scope, form, url etc.

Adrian

-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: 18 August 2007 12:04
To: CF-Newbie
Subject: Re: What does this line do? session.siteSection = "#sec#"


It could also be "simplified" to

<cfset session.siteSection = variables.sec>

-----Original Message-----
From: Tom Hines
To: CF-Newbie
Sent: Sat Aug 18 05:49:28 2007
Subject: What does this line do? session.siteSection = "#sec#"

<CFIF ISDEFINED("sec")>
        <cfset session.siteSection = "#sec#">
</CFIF>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3006
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to