ofRectangle inside function always true

I wanted to use the inside function in ofRectangles to check if a point is inside the rectangle or not, but it returns always true:

  
  
bool inside(float px, float py){  
	if( px < x && py < y && px > x + width && py > y + height ){  
	    return false;  
	}  
	return true;  
}  
  

This works:

  
  
bool inside(float px, float py){  
	if( px > x && py > y && px < x + width && py < y + height ){  
	    return true;  
	}  
	return false;  
}  
  

Peter