描述人心情英语短句:看看我的asp代码错在哪里?

来源:百度文库 编辑:高校问答 时间:2024/04/29 10:00:26
<body>
<%
if sex="男" then
if age<8 then
response.Write("小弟弟")
else
if age>=8 and age<=15 then
response.Write("小男孩")
else
if age>=16 and age<=24 then
response.Write("小伙子")
else
if age>=25 and age<=45 then
response.Write("青年男子")
else
if age>=46 and age<=55 then
response.Write("中年男子")
else
if age>=56 and age<=80 then
response.Write("老爷爷")
else
if age>81 then
response.Write("老寿星")
end if
end if
end if
end if
end if
end if
else
if age<8 then
response.Write("小妹妹")
else
if age>=8 and age<=15 then
response.Write("小女孩")
else
if age>=16 and age<=24 then
response.Write("小姑娘")
else
if age>=25 and age<=45 then
response.Write("青年女子")
else
if age>=46 and age<=55 then
response.Write("中年女子")
else
if age>=56 and age<=80 then
response.Write("奶奶")
else
if age>81 then
response.Write("老奶奶")
end if
end if
end if
end if
end if
end if
end if
%>

去了else用一个end if试试