I frequently find myself in a situation where I have code that looks like this:
if ($some_condition){ &some_stuff(); # stop here if a condition is met &some_more_stuff(); }
Frequently, when I get to the line where the comment is, I'd like to skip over some_more_stuff() and continue with the program. However, I can't seem to find a graceful way to do it. last seems to be erratic with if blocks.
I appreciate any assistance you can offer.
In reply to Breaking out of an 'if' by jpfarmer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |