Be a Supporter!
Response to: Contidionals in Javascript Posted July 26th, 2001 in Programming

Sorry for being so vauge, but thanks, it worked.

Contidionals in Javascript Posted July 26th, 2001 in Programming

Is there any easy way to determine what block of numbers a variable will fall into?

I was working on a script that uses data input from the user to change the variable t based on their input to a number between -70 and 80. Now I am having trouble getting the script to decide which block of numbers (-70 to -50, -51 to -30, -31 to 10, etc...) the variable t falls into.

I tried using:

if(t > 10 && t < 30)
{ document.write("bleh")

...but it just gave me a nasty error. Any suggestions?

Response to: Wake up, Programmers! Posted June 26th, 2001 in Programming

Any shit by 311.