Can I "break out" of an if{} block?



At any point in a loop, I can "break out" of it with a 'last', or I can
"break out" of a subroutine with a 'return'.

Is there a similar way to easily "break out" of an if{} block (without
a goto)?

Thanks!

--
David Filmer (http://DavidFilmer.com)

.



Relevant Pages

  • Re: Can I "break out" of an if{} block?
    ... Quoth usenet@xxxxxxxxxxxxxxx: ... "break out" of a subroutine with a 'return'. ... a goto)? ... do&c.) is treated as a loop which loops once. ...
    (comp.lang.perl.misc)
  • Re: Edit question
    ... >> encourages use of GOTO, GOSUB etc, leading often to dreadful code. ... GOSUB was fine as long as it was truly a subroutine; ... including the use of all sorts of loop calls. ...
    (comp.sys.acorn.apps)
  • Re: memory leak help!
    ... a loop from the main program. ... REPLACE THE NEW COMPLEX INTO ORIGINAL ARRAY x ... END OF SUBROUTINE SCEUA ... IMPLICIT NONE ...
    (comp.lang.fortran)
  • Safe multithreading in ASP.Net
    ... Code in global.asx Application_start subroutine, ... Dim emails As New ForumEmail ... Do While ContinueNotify 'boolean value set to True so loop will continue ... the thread still continues to execute. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem writing code to go to a label after calling a procedure
    ... >>I first tried to create procedures for parts of the program to avoid ... Thanks for the advice J French. ... I know a good program structure avoids many goto ... subroutine, this is somthing I found that Visual Basic can't do. ...
    (comp.lang.basic.visual.misc)