Can I set a midrange for the HCSR04 in my code?

Aloha! I'm trying to see if I can set a midrange for my HCSR04 like in this code?

int maximumRange = 200; // 
int midrange = 100; //
int minimumRange = 0; // 
long duration, distance; //

How would I code multiple "if" comments one being : "if distance is between midrange and max range" ?

if(dist > midRange && dist < maximumRange)
{

}