haaid
01-07-2009, 01:16 PM
Hi,
I'm trying to code a calculation which checks if a number (number of days) is
equal to 1
bigger than 1 but lower than 8 (2 to 7)
bigger than 7 but lower than 14 (8-13)
bigger than 14
there would be a response then depending on what category the result is...
i had thought to do this with
<%if number = 1 then
response.write("1")
elseif 1 < number < 8 then
response.write("more than one, less than 7")
elseif 7 < number < 14 then
response.write("more than 7, less than 14")
elseif number > 14 then
response.write("more than 14")
end if
%>
but that doesn't seem to do it. Hints and pointers welcome...
and yes, i'm a novice :-)
I'm trying to code a calculation which checks if a number (number of days) is
equal to 1
bigger than 1 but lower than 8 (2 to 7)
bigger than 7 but lower than 14 (8-13)
bigger than 14
there would be a response then depending on what category the result is...
i had thought to do this with
<%if number = 1 then
response.write("1")
elseif 1 < number < 8 then
response.write("more than one, less than 7")
elseif 7 < number < 14 then
response.write("more than 7, less than 14")
elseif number > 14 then
response.write("more than 14")
end if
%>
but that doesn't seem to do it. Hints and pointers welcome...
and yes, i'm a novice :-)