You cant break a 'while' dumbnuts!
PHP Code:
while (this.foo == false) {
player.chat = "I've failed" SPC temp.bar SPC "times!";
temp.bar ++;
if (temp.bar == 10) {
player.chat = "I didnt fail, yay!";
temp.foo = true; // Automaticly breaks the 'while' since the reason its being run is now invalid.
}
}