为什么我ASP中 if page < 5 then为真 而if page < p then为假

来源:百度知道 编辑:UC知道 时间:2024/07/01 23:20:38
为什么我ASP中 if page < 5 then为真 而if page < p then为假,p已经赋值为5

请高手解答
page是个循环变量,从1到5

类型不对,一个是整型一个是字符串型,转换成整型就行啦。

不会啊 我这段代码 两个if语句都为真,你看下是不是别的什么问题
page = 4
if page<5 then
response.Write("page<5")
end if

p = 5
if page<p then
response.Write("pagesy")
end if

if cint(page) < p then