Quote:
Originally Posted by Engine
Is there any downfall to doing it that way?
|
Nope. I did it with continue because there was some more stuff down there and it gets messy with lots of indents. It's also good for stuff like:
PHP Code:
for (temp.pl : players) {
if (pl.clientr.hp <= 0) {
continue;
}
if (pl == player) {
continue;
}
if (pl.onStaffTag()) {
continue;
}
if (pl.guild == player.guild && player.guild != "") {
continue;
}
pl.chat = "oww!!!";
}
as opposed to
PHP Code:
for (temp.pl : players) {
if (pl.clientr.hp > 0 && pl != player && ! pl.staffTag() && (pl.guild != player.guild && player.guild != "")) {
pl.chat = "oww!!!";
}
}