Re: PHP if exit Q
| From: | Marek Kilimajer | Date: | Wed, 27 Aug 2003 11:06:38 +0000 |
| Subject: | Re: PHP if exit Q | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160892@lists.php.net to get a copy of this message | ||
You should fix your logic, or put additional if in. Or you can use while and break, but this is somewhat sick:
while( condition ) {
// code here
if( codition ) {
} else {
break;
}
// more code here
break; // break at the end so while() becomes if()
}
jsWalter wrote:
If I am in a second level IF conditional and it failes, I want to jump out of the parent IF. How can I do that? Thanks Walter