| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 881 人关注过本帖
标题:[求助]请问两个if语句怎么连用???
只看楼主 加入收藏
快乐如我
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2005-11-22
收藏
 问题点数:0 回复次数:1 
[求助]请问两个if语句怎么连用???


请问下面的两个if....怎么连用才正确???
<%
if 条件1 then
if 条件2 then
%>
结果
<%else%>
<%else%>
另一种结果
<%end if%>
<%end if%>

搜索更多相关主题的帖子: 语句 
2006-03-16 14:59
Anycall
Rank: 1
等 级:新手上路
帖 子:79
专家分:0
注 册:2005-12-20
收藏
得分:0 

if a="" then
if b="" then
Response.write("a is null,b is null too.")
else
Response.write("a is null,but b is not null.")
end if
else
if b="" then
Response.write("a is not null,b is null.")
else
Response.write("a is not null,but b is not null too.")
end if
end if


2006-03-16 15:58
快速回复:[求助]请问两个if语句怎么连用???
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014197 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved