asp如何做大于小于等于的判断啊?

来源:百度知道 编辑:UC知道 时间:2024/05/06 21:08:54
asp如何做大于小于等于的判断啊?
执行代码。。。。。。
还有我大于小于是中文。。。。。

if 条件>值 then
执行代码
elseif 条件<值 then
执行代码
elseif 条件=值 then
执行代码
end if

a=3
b=4
if a>b then
Response.write"a is big"
elsif a<b then
Response.write "b is big"
elseif a=b then
Response.write "a=b"
else
Response.write "Nothing"
end if

如果是中文,就把它转换为ASCII码进行比较.
比如"我"字,就asc("我")