include::../description.adoc[] == Noncompliant Code Example [source,vbnet] ---- For i As Integer = 0 To 10 'noncompliant, loop only executes once foo(i) Exit For Next ... For i As Integer = 0 To 10 'noncompliant, loop only executes once If i = Something Exit For Else foo(i) Return End If Next ---- == Compliant Solution [source,vbnet] ---- For i As Integer = 0 To 10 foo(i) Next ... For i As Integer = 0 To 10 If i = Something Exit For Else foo(i) End If Next ---- ifdef::env-github,rspecator-view[] ''' == Implementation Specification (visible only on this page) include::../message.adoc[] include::../highlighting.adoc[] ''' == Comments And Links (visible only on this page) include::../comments-and-links.adoc[] endif::env-github,rspecator-view[]