cwlr.net
当前位置:首页 >> Asp的iF语句且要怎么弄?? >>

Asp的iF语句且要怎么弄??

1. if..end if 2.if...else...end if 3.if...elseif...else...end if 10 Then Response.Write("大于10")ElseIf myNum = 10 Then Response.Write("等于10")Else Response.Write("小于10")End If%>4.嵌套使用 =0 then if myNum=0 then 执行语句1 e...

1. if..end if 2.if...else...end if 3.if...elseif...else...end if 10 Then Response.Write("大于10") ElseIf myNum = 10 Then Response.Write("等于10") Else Response.Write("小于10") End If %> 4.嵌套使用 =0 then if myNum=0 then 执行语...

0 and thetime=6 and thetime12 and thetime14 and thetime19 then str="晚上好" end if response.write str %>

1. if..end if 2.if...else...end if 3.if...elseif...else...end if 10 Then Response.Write("大于10") ElseIf myNum = 10 Then Response.Write("等于10") Else Response.Write("小于10") End If %> 4.嵌套使用 =0 then if myNum=0 then 执行语...

0 then%>在ASP中与PHP的判断有点区别,PHP中判断等于要用:==,ASP中判断等于只要用:=号 也就是说,把上面的if board_id==7改成if board_id=7就可以

dim sex,age sex="男" age=50 if sex="男" then if age=8 and age=16 and age=25 and age=46 and age=56 and age80 then response.Write("老寿星") else if age=8 and age=16 and age=25 and age=46 and age=56 and age80 then response.Write("...

不对,看你的意思,应该是想写成 if pic="16" then response.Write "" elseif pic="24" then response.Write "" elseif pic="25" then response.Write "" else response.Write "" end if 如果之前你写的,若pic=16,会执行response.Write "" 和 ...

按你这理论 rs("id") 不就是你要的数据库里的ID么。你直接赋值不就行了?

一般只用判断分割后的数组内是否为空 hire_workadd = ""pstring=split(trim(request("workadd")),",")for numm=0 to ubound(pstring) if len(pstring(numm))>0 then 你的处理代码.... end ifnext

网站首页 | 网站地图
All rights reserved Powered by www.cwlr.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com