If statement that tests if a value is in range

if (value >= min && value <= max) {
    // value is in range
} else {
    // value is not in range
}