How can I check whether a variable exists or not. I tried the isDefined but that doesn't seem to work. I'm using it for checking of a session variable.
A common mistake is to use the variable instead of the variable name like this.
<cfif isdefined(#session.var1#)>
This passes the variable object instead of the variable name and will give an error.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.