+ -
当前位置:首页 → 问答吧 → 急求一个3<=变量<=10的代码

急求一个3<=变量<=10的代码

时间:2011-11-18

来源:互联网

<script>
<%if Us.isZx=1 then %> 
 alert("* 您当前可升合格 <%=UpLevelId%> 级,请您的编号将被系统收回!");  
<%
elseif Us.UsTypeId>=3 && Us.UsTypeId<=10 then
%>
 alert("* 您好请立即升级!");  
<%
end if
%>
</script>

作者: shiftshen   发布时间: 2011-11-18

你不是自己解决了吗

作者: p2227   发布时间: 2011-11-18

Us.UsTypeId>=3 && Us.UsTypeId<=10

作者: zsx841021   发布时间: 2011-11-18

3<=变量<=10?如果小于3不就小于10吗?不知道你要怎么判断?

你可以这么判断:if a<=3 then
  response.write "aa"
  elseif a<=10 then
  response.write "bb"
  else
  response.write "cc"
  end if

作者: hefeng_aspnet   发布时间: 2011-11-18

else if Us.UsTypeId>=3 and Us.UsTypeId<=10 then
.
.
.
.
<%
 end if
 end if
%>

作者: Linzhe423   发布时间: 2011-11-18