So I have this homework assignment. It's meant as a basic intro to server-side technologies (ASP, JSP, PHP). We pick a server-side technology and re-write a previous assignment to be a multi-page thing. First page just asks for your name and the upper bound for the game. Second page plays the game. Third page congratulates you on a win.
So the assignment is just a basic game of High Low. I chose to do it in ASP. The page postback to itself is working (as far as I can tell), the issue I'm having is with one of my Ifs for the rules of the game.
Pastebin page for the who .asp file. If it's easier I can also provide the other/first page that posts to this one: http://pastebin.com/c9Nx3YV6
The current problem I have is that in this block
Code:
if (lowGuess > guess) then
greeting = "That guess was way too low, " & username
elseif (guess > highGuess) then
greeting = "That guess was way too high, " & username
elseif (guess = rNum) then
'Redirect to the win page here
else
the "if (guess > highGuess) then" condition seemingly always evaluates as true, and I have no clue why.
Anyone able to see the mistake I'm making?