| |
eternalprophet
Posts: 1
Score: 0
Joined: 4/1/2003
From:
Status: offline
|
Sub guess_onClick currguess = document.randNum.myguess.value if (currguess = randnumb) then alert("You guessed the correct number!") elseif (currguess < randnumb) then alert("Too Low!") numGuess = numGuess + 1 document.randNum.numGuess.value = numGuess else alert ("Too High!") numGuess = numGuess + 1 document.randNum.numGuess.value = numGuess end if Forgive me, I could not make the entire html code appear, sniff. But, is there anything anyone can see wrong with the if statement above. If there is, please let me know. Random Number Guessing Game
|
|