It's because it you don't use quotes, the value it is trying to evaluate is
url.id

If url.id =2345 then you are effectively writing:
<cfif isdefined("2345")>

You are looking for the variable name not the content of the variable.

Adam
  -----Original Message-----
  From: daniel kessler [mailto:[EMAIL PROTECTED]
  Sent: 19 March 2004 01:49
  To: CF-Talk
  Subject: Re: #url#

  >No, that's not correct.  isDefined DOES work for URL variables.  (It does
  >NOT work for CGI variables)
  >
  ><cfif isDefined("url.id")>do something

  but if I do:
  <cfif isDefined(url.id)>
  crap here
  </cfif>

  it fails with an error, "isDefined(url.id)"

  Mine doesn't have the quotes and yours does.  Though with yours, it was
always defined whether it was or not, I think.  As you can see, I'm kinda
new at this.

  Pre-difining it and then testing for the pre-defined state seemed to work.
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to