title: POSTMAN | GET Variable for if - statement
body: <p>i want to do a if statement in Postman. I have the Environmet Variable: server_state1 &amp; server_state2 
  These Variables both gets numbers from 0-3. 
  Now i want to write a Pre-request-Script in an PUT Statement. 
  The IF Statement sounds like </p>
  
  <pre><code>var server_state1 = postman.GetEnvironmentVariable("state_server1");
  var server_state2 = postman.GetEnvironmentVariable("state_server2");
  
  if (server_state1 === 0 &amp;&amp; server_state2 === 0){
     postman.SetEnvironmentVariable("server_state12", "Everything is fine");
  }
  </code></pre>
  
  <p>But this does not work. </p>