Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / March 2006



Tip: Looking for answers? Try searching our database.

Isdefinned

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rpm843 - 28 Mar 2006 21:14 GMT
I have a page that checks for a varible.  If the value is true - continue down
the page.  However,  if this varible is not True,  stop here.  This isn't
working.

<cfif NOT isdefined("id") is "100">
             Not Available
</cfif>
dimaint - 28 Mar 2006 22:07 GMT
You might want to try this
<cfif NOT isDefined("var") or #var# neq "100">
Not Available
</cfif>
Dan Bracuk - 29 Mar 2006 04:18 GMT
What's the purpose of the is "100" part?

I was just wondering, because that's what's messing you up.
BKBK - 29 Mar 2006 09:01 GMT
... If the value is true - continue down the page. However, if this varible is
not True, stop here.

Seconding Dimaint,

<!--- page processing stops if id is not 100 --->
<cfif NOT (isdefined("id") AND id is "100")>
Not Available
<cfabort>
</cfif>
...
...
<!--- page processing continues if id is 100 --->
...
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.