title: Advance to Next Item from Within a For-Next Loop
body: <p>I have a For-Next loop.  Within the loop I test several different criteria and if any test fails, then I am ready at that point to skip the remainder of the code in the loop and advance to the "next" item.  The way I currently handle this is with a GoTo statement that takes me to the line right before "Next".  I'd prefer not to use a GoTo statement, is there another way to advance to the "next" item from within a For-Next loop?  TIA!</p>
  
  <pre><code>For x = 1 to 10
      Test 1
      If Test 1 fails then
          GoTo Line1
      End if
  
      Test 2
      If Test 2 fails then
          GoTo Line1
      End if
      .
      .
      .
      If all tests pass then
          add item to array
      End if
  Line1:    
  Next
  </code></pre>