Set condition for windows