Change condition statements in script