Quick ASP question

Discussion in 'OT Technology' started by BackScratch, Jul 11, 2005.

  1. BackScratch

    BackScratch New Member

    Joined:
    Nov 10, 2004
    Messages:
    646
    Likes Received:
    0
    Location:
    Huntington Beach, CA
    I'm a little new to ASP, as I'm more familiar with the PHP language. I have a very simple question. What is the ASP equivalent to PHP's die() and exit() functions?
     
  2. OmniFire

    OmniFire *************************

    Joined:
    Oct 19, 2003
    Messages:
    3,778
    Likes Received:
    0
    Location:
    Austin
    abandon?
     
  3. Keyzs

    Keyzs OT Supporter

    Joined:
    Nov 3, 2003
    Messages:
    814
    Likes Received:
    0
    Location:
    Charlotte, MI
    I am familar with PHP but do not know either of those commands.

    To exit a function in ASP its Exit Function

    Code:
    Function Whatever(variable)
      if variable = "" then
       [b]Exit Function[/b]
      else
       do something
      end if
    End Function
    
    Response.End

    Will stops processing a script, and returns the current result.
     
    Last edited: Jul 12, 2005

Share This Page