title: In Jmeter, how do I make my thread group to start next loop on error on the first part of my thread group and continue on error on the second part?
body: <p>I have a thread group with a login part and a part that checks different webpages. I want the thread group to loop forever, since its used for monitoring. However I want to start the next loop when an error occurs on the login part of the thread, but I want the thread to continue when an error occurs on one of the webpages. I have tried to do this using jsr223 postprocessors/samplers/listeners with the following code:</p>
  
  <pre><code>Boolean result = sampleResult.isSuccessful();
  
  if ( result == false){
      sampleResult.setStartNextThreadLoop(true);
  }
  </code></pre>
  
  <p>I've also tried this using if controllers/while controllers but I cant figure out how I can accomplish this. </p>
  
  <p>Can anyone help me out?</p>