title: How to use conditional statement in Postman Body section
body: <p>I have a scenario to validate multiple datasets with the same logic. Only change is dataset location.</p>
  <p><strong>Eg:</strong></p>
  <p>Apple, Sony, MI are the datasets, their data is placed in separate folder. If I pass the variable name as Apple, then in postman body part it should check which data to pass.</p>
  <p><strong>Body Section in Postman using JSON</strong></p>
  <pre><code>   {
      &quot;if&quot; : { {{Mobile}} : &quot;Apple&quot;},
      &quot;then&quot; : {&quot;location&quot;},
      &quot;else&quot;:
      {
       &quot;if&quot; : { {{Mobile}} : &quot;Sony&quot;},
       &quot;then&quot; : {&quot;location&quot;}
      }
    }
  </code></pre>
  <p>If I use the above code, I got the response as <strong>Undefined</strong> and <strong>200 OK</strong></p>
  <p>My expected response should be some ID value (eg: 1,2,3 etc.)</p>