Recommended: Application of Cache technology in ASP It has been 7 years since ASP was released, and its ASP technology has been quite mature. Since Microsoft launched ASP.NET, it has gradually stopped updating the ASP version. But since there are many people who are still accustomed to using ASP to develop websites, again I will use a simple example
Learn ASP to understand your If statement process.
| The following is the quoted content: If condition Then [statements1] Else [statements2] End If |
The above is the syntax of the If statement of the VBScript script. When the condition value is True, statements1 is executed, and statements2 is executed. Due to the automatic conversion function of VBScript, the value of condition is equivalent to True when the value of condition is a non-0 value, and when the value of condition is 0, it is equivalent to False.
In actual use, we must have a full understanding of the value of the condition in order to be able to be fully aware of the process of If statements. Let’s give some examples to deepen memory:
| The following is the quoted content: <% Dim condition condition = Response.IsClientConnected If condition Then Response.write(True) Else Response.write(False) End If 'condition = True , Result:True 'condition = False , Result:False 'condition = 2 , Result:True 'condition = 0.01 , Result:True 'condition = 0 , Result:False 'condition = 0.00 , Result:False 'condition = isNumeric(3) , Result:True 'condition = isNumeric(aa) , Result:False 'condition = Array(0,1,aa,bb)(0) , Result:False 'condition = Array(0,1,aa,bb)(1) , Result:True 'condition = Response.IsClientConnected , Result:True %> |
Share: Multiple ASP codes that bind multiple domain names The first method: If there is an ASP space and you want to place multiple sites, these codes can help you: The following is the reference: the first <%if Request.ServerVariables(&qu