ASP怎么写验证是否为100的正整数的代码

来源:百度知道 编辑:UC知道 时间:2024/05/30 00:45:30
if action="jifen" then
jifen=trim(request("jifen"))
if not isInteger(jifen) then
response.write"<script>alert(""非法换算!"");history.go(-1);</script>"
else
这是验证是否为整数的?但是怎么验证是否为100的正整数呢
提问有点小失误,应该是验证是否为100的倍数

在IF语句中加个"and (jifen/100)<0"

if action="jifen" then
jifen=trim(request("jifen"))
if not isInteger(jifen) and ((jifen/100)<0) then
response.write"<script>alert(""非法换算!"");history.go(-1);</script>"
else