国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

ASP:True or False,明明白白你的If語句流程_ASP教程

2024-05-04 11:03:40
字體:
來源:轉載
供稿:網友

推薦:ASP中Cache技術的應用
ASP從發布至今已經7年了,使用ASP技術已經相當成熟,自從微軟推出了ASP.NET之后就逐漸停止了對ASP版本的更新。但是由于有很多人仍然習慣使用ASP來開發網站,所以,再次我將以一個簡單的例子來說

通過學習ASP明明白白你的If語句流程。

以下為引用的內容:
If condition Then
[statements1]
Else
[statements2]
End If

上邊是VBScript腳本If語句的語法,當condition值為True時執行statements1,當condition值為False時執行statements2,由于VBScript的類型自動轉換功能,當condition的值為非0的數值時和True等效,當condition的值為0時和False等效。

實際運用中,我們必須對condition的值有充分的認識,才能對If語句的流程胸有成足。下邊我們再舉一些例子來加深記憶:

以下為引用的內容:

<%
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
%>

分享:多個綁定多域名的ASP代碼
第一種方法:如果有有一個ASP空間,而你又想放置多個多個站點,這些代碼可以幫到你: 以下為引用的內容:第一個 <%if Request.ServerVariables(&qu

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 班玛县| 衡水市| 集贤县| 清徐县| 兴宁市| 开平市| 昌图县| 双峰县| 遂宁市| 获嘉县| 察雅县| 漳州市| 海口市| 桃江县| 河南省| 鄂尔多斯市| 冷水江市| 富平县| 吉水县| 新民市| 洛浦县| 德格县| 穆棱市| 潼南县| 开原市| 嘉鱼县| 赤水市| 靖西县| 通海县| 麻栗坡县| 高密市| 青岛市| 将乐县| 屯留县| 合水县| 丰宁| 汉川市| 宁夏| 四子王旗| 南阳市| 武宁县|