ASP中的條件語句和循環語句
1) if。
then if 條件為真 then 語句塊 end if+++++++++++++++++++++++++++++++++ 2) if。then。
else +++++++++++++++++++++++++++++++++ 3) select case select case a(變量) case a=1 語句塊1 case a=2 語句塊2 。 。
. end select +++++++++++++++++++++++++++++++++ VBscript 循環語句1)do。loop do while 條件 語句塊 loop--------------------------------- do 語句塊 loop while 條件--------------------------------- do until 條件 語句塊 loop---------------------------------do 語句塊loop until 條件+++++++++++++++++++++++++++++++ 2)while。
wend +++++++++++++++++++++++++++++++ 3)for。next +++++++++++++++++++++++++++++++ 4)for each。
next +++++++++++++++++++++++++++++++ 5)exit exit doexit forexit functionexit sub +++++++++++++++++++++++++++sub 和 function 是過程。
asp的if語句
我建議你改成這樣
sql="select * from message where myid='"*("myid")"' and mypassword='"*("mypassword)"'"
* sql,conn,1,1
if not * then
if(rst("shenhe")="yes") then
*("這里加上你審核通過的處理")
else
*("這里加上你審核未通過的處理")
end if
else
*("這里加了沒有這個用戶名,或者密碼錯誤的處理")
end if
ASP IF語句
*xt 你用了movenext這一句
if i" &chr(34) & RS("name") & chr(34) & "" &chr(34) & RS("JJ") & chr(34) & "" & chr(34) & RS("SN") & chr(34) & "" & chr(34) & RS("SW") & chr(34) & "" & chr(34) & RS("BZ") & chr(34) & "" & chr(34) & RS("IMG") & chr(34) & ""
next
else
outstr=outstr & "
"
end if
ASP的if語句一般怎么用
1. if..end if
*。else。end if
*。elseif。else。end if
10 Then
*("大于10")
ElseIf myNum = 10 Then
*("等于10")
Else
*("小于10")
End If
%>
4.嵌套使用
=0 then
if myNum=0 then
執行語句1
else
執行語句2
end if
else
執行語句3
end if
%>