Garmaine Staff asked 2 years ago

This is a rather simple question, but I've just come across a situation in which an if statement is constantly triggering despite the parameters not being true.

function draw(){
 if(5<mouseX<10 && 5<mouseY<10){
    } else (background(200));

When running the above program, the background is always value 100, no matter where I move the mouse. I've boiled this down from an attempt to make a button within a mouseClicked function in a successful attempt to find my fundamental problem of misunderstanding. I'm running it in p5js if that helps, thanks!