title: how to extract variable from JSON response array on condition basis in postman?
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>[
      {
          "Value": "987654",
          "Type": "EF"
      },
      {
          "Value": "987159",
          "Type": "DE"
      },
      {
          "Value": "987789",
          "Type": "CD"
      },
      {
          "Value": "987456",
          "Type": "BC"
      },
      {
          "Value": "987123",
          "Type": "AB"
      }
  ]</code></pre>
  </div>
  </div>
  </p>
  <p>I WANT to fetch Value on the basis of Type, and save it to Environment variable, if Type= CD, Value set to environment variable CDValue=987789</p>