javascript if statement between two numbers code example
Example 1: If statement that tests if a value is in range
if ((x >= xmin) && (x <= xmax)) {
// something
}
Example 2: if between two numbers javascript
if (500 < thenumber && thenumber < 600) {
// ...
}