title: Jmeter If controller with http code
body: <p>I want to use if controller in my jmeter load testing. The test is:</p>
  
  <ol>
  <li>do a post and get back an access token.</li>
  <li>use that access token to get the next link.</li>
  </ol>
  
  <p>My issue:</p>
  
  <p>I have the access token and have used the post-assertion->regular expression extractor and got the access token from he http response. But now I don't know how to use the if control and ask it do next test only if the http response code is 200. And second question is can i still pass my regular expression value of access token into the if loop's http header manager?</p>
  
  <p>attaching the screen shot of my jmeter.<img src="https://i.stack.imgur.com/ghnpp.png" alt="enter image description here"></p>