This content has been marked as final. Show 5 replies
What does #FAIL# evaluate to?
Oh, never mind, must be an integer since you are comparing it to one. In that case, this should work:
<cfif isdefined("FAIL") AND #FAIL# EQ 1>Please try again...</cfif>
Hmm, that still doesn't work..
"Fail" is set on the referring page as this: <cfset Fail=1>
If you use isDefined exactly the way it's described in the cfml reference manual, it will work with any variable.
For usdp, when you say "fail is set on the referring page", unless you pass that to the page with isDefined, the isDefined function will always return false.
> For usdp, when you say "fail is set on the referring page", unless you pass
> that to the page with isDefined, the isDefined function will always return
Just to clarify what Dan's saying: variables generally only live for the
life of the request they were created within (with the exception of
session-, application- and server-scoped variables). So a variable set
during the preceding request ("the referring page") will not exist on the
subsequent "page". Hence isDefined() returning false.