title: How to use if condition in Karate for dynamic responseCodes
body: <p>I am trying to run few tests which needs &quot;<code>Delete.feature</code>&quot; file to be called at of the end of each scenario if it is successful but if it's a failure tests then it should not call &quot;<code>Delete.feature</code>&quot; file.</p>
  <p>My test look something like this :</p>
  <pre><code>Given url ApiAdminURL
  
  And path AdminPath
  
  And header apigateway-apikey = apiGatewayKey
  
  And header apigateway-basepath = 'lambdaTest'
  
  * json myReq = read('users.json')
  
  * set myReq.apiConf.subscriptionTiers = subscriptionTiers
  
  * print 'my subscriptions : ', myReq.apiConf
  
  And request myReq 
  
  When method post
  
  Then status responseCode
  
  * call read('Delete.feature')
  
  Examples:
  
  | subscriptionTiers                     |responseCode|               
  | [Unlimited,Gold,Bronze, Silver]       |200         |
  | [Unlimited,Gold,Bronze]               |200         |
  | [Unlimited,Gold,BronzeAuto-Approved]  |400         | 
  </code></pre>
  <p>If the response code is <code>200</code>, then it should run the command  &quot;<code>* call read('Delete.feature')</code>&quot; and if the <code>responseCode</code> is <code>400</code>, then it should skip this command.</p>
  <p>can someone please help me with this?</p>