i**p 发帖数: 902 | 1 This is an asp file.
<%
ABC = 10000
page = 1
if ( page >= ABC ) then
Response.write ("page is large than ABC")
else
Response.write ("page is less than ABC")
end if
%>
Tell me, what will you see after you run it? |
y********o 发帖数: 2565 | 2 page is less than ABC
?
【在 i**p 的大作中提到】 : This is an asp file. : <% : ABC = 10000 : page = 1 : if ( page >= ABC ) then : Response.write ("page is large than ABC") : else : Response.write ("page is less than ABC") : end if : %>
|
y********o 发帖数: 2565 | 3 I just gave it a shot. The output is
Page is less than ABC
Why are you curious about this?
【在 i**p 的大作中提到】 : This is an asp file. : <% : ABC = 10000 : page = 1 : if ( page >= ABC ) then : Response.write ("page is large than ABC") : else : Response.write ("page is less than ABC") : end if : %>
|
i**p 发帖数: 902 | 4 My curiousness is my computer gave me another answer!
【在 y********o 的大作中提到】 : I just gave it a shot. The output is : Page is less than ABC : Why are you curious about this?
|
y********o 发帖数: 2565 | 5 What version is your asp engine?
【在 i**p 的大作中提到】 : My curiousness is my computer gave me another answer!
|
i**p 发帖数: 902 | 6 Sorry, my code is this. run it as http://localhost/test.asp?page=1
<%
abc = 10000
page = Request.QueryString("page")
if ( page >= abc ) then
Response.write(page & " > " & abc & " ")
else
Response.write("page is less than IND ")
end if
%>
I guess the problem is from page, which may be STRING. But how can I convert
it to number?
【在 y********o 的大作中提到】 : What version is your asp engine?
|
y********o 发帖数: 2565 | 7 myinteger = Cint(my_string_presentation_of_an_integer)
【在 i**p 的大作中提到】 : Sorry, my code is this. run it as http://localhost/test.asp?page=1 : <% : abc = 10000 : page = Request.QueryString("page") : : if ( page >= abc ) then : Response.write(page & " > " & abc & " ") : else : Response.write("page is less than IND ") : end if
|