cwlr.net
当前位置:首页 >> ASP中嵌套IF的语法是什么? >>

ASP中嵌套IF的语法是什么?

//第一个对应 if a.eof then ... else 其实这里的内容就是第二个对应 end if //第二个对应 if a("...")

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

你指的是if里面是if? if 条件 then if 条件 then 执行语句 end if end if

select * from chengxu where qianru like ‘%公司%’ order by id desc

if ... then .... if ... then ... end if end if 例子: if a>0 then if a

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

SELECT * FROM Products WHERE ProductID IN (SELECT ProductID FROM OrderDetails WHERE Discount >= .25);

(1)if ..then ..... (2)if .. then ..... (2)elseif .. then ..... (2)else ..... (3) if ... then ..... (3) else (3) end if (2)end if ..... (1)elseif ... then .... (4)if ... then ...... (4)elseif ...then .........

select * from chengxu where qianru like ‘%公司%’ order by id desc

肯定是缺少了,for后面一定要有next,这段程序要实现什么样的功能,我帮你重写下 2个for只有1个next肯定错啊,你if都有end if了后面加response.Write i next语法错大了

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