5.4.2.17 Exit Sub Statement

 exit-sub-statement = "Exit" "Sub"  

Static Semantics.

§ An <exit-sub-statement> MUST be lexically contained inside the <procedure-body> of a <subroutine-declaration>.

 

Runtime Semantics.

§ If the <statement-block> causes execution of an <exit-sub-statement>, execution of the procedure and of this statement immediately completes. No other statements following the <exit-sub-statement> in the procedure are executed.