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 --->
...