Conflicting If statements in For Loop

[AS]onClipEvent (enterFrame) {
for (var i = 0; i<=31; i++) {
if (this.hitTest("_root.clouds"+i)) {
_root.sky.gotoAndStop(“cloudy”);
cloudy = true;
break;
}
}
if (!cloudy) {
_root.sky.gotoAndStop(“sunny”);
}
cloudy = false;
//Close of For Loop
}[/AS]