注册 登录
编程论坛 ASP技术论坛

if 语句问题

zmhdxy 发布于 2007-11-30 20:31, 524 次点击
<%
dim dteTime
dteTime = Now()
%>
<html>
<body>
当前的系统时间是<%=dteTime%><BR>
<%
if dteTime< #12:00:00# and dteTime >= #00:00:00# then
  response.write"Good morning!!!"
elseif dteTime <#19:00:00# and dteTime >= #12:00:00 then
  response.write"Good afternoon!!!"
else
  response.write"Good evening!!!"
end if
%>
</body>
</html>
这段代码竟然显示500错误
1 回复
#2
zmhdxy2007-11-30 20:33
自己疏忽
elseif dteTime <#19:00:00# and dteTime >= #12:00:0# then
少了#
1