isDefined or Exist Function

Results 1 to 3 of 3

Thread: isDefined or Exist Function

  1. #1
    Lharvin Guest

    Default isDefined or Exist Function

    Is there a function that will allow me to detect if a variable exist? I simply want to create an If Then statement that basically says .... If [variable exist] Then [ ] End If. I really want to be available to see if QueryString variable exist.<BR><BR>Any help would be greatly appreciated.<BR><BR>Thanks in advance,<BR><BR>Lharvin

  2. #2
    Join Date
    Dec 1969

    Default RE: isDefined or Exist Function

    If(Request.QueryString("QueryStringVariable")) Then<BR> //Code<BR>Else<BR> //Code<BR>End If<BR><BR>The above code assumes that you only pass the QueryString variable if it has a value.

  3. #3
    Join Date
    Dec 1969

    Default request.querystring.count

    if (request.querystring.count &#062; 0) Then<BR> response.write request.querystring.count<BR>else<BR> response.write "no querystring"<BR>end if

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts