title: How to check if a name/value pair exists when posting data?
body: <p>I'm not able to find the proper syntax for doing what I want to do. I want to do something if a name/value pair is not present. Here is the code in my view:</p>
  
  <pre><code>if (!request.POST['number']):
      # do something
  </code></pre>
  
  <p>What is the proper way to accomplish something like the above? I am getting a syntax error when I try this.</p>