How to use correctly readmouse into an if sentence