title: Form field value in django template
body: <p>Quick question,</p>
  
  <p>I am able to output the value of a form field using</p>
  
  <pre><code>{{ form.field.value }}
  </code></pre>
  
  <p>But I cannot seem to check that value in an if statement.</p>
  
  <pre><code>{% if form.field.value == 'whatever' %}
  </code></pre>
  
  <p>Always fails.. any ideas?</p>
  
  <p>The field is a boolean type field.</p>
  
  <p>EDIT - the answer given below works for some fields.. Here is what i'm trying to do;</p>
  
  <p>Form field is a boolen field in a model, using this code in the form;</p>
  
  <pre><code>self.fields['information_request'] = forms.TypedChoiceField(choices=((True, 'Yes'), (False, 'No')), widget=forms.RadioSelect, coerce=lambda x: x and (x.lower() != 'false'))
  </code></pre>
  
  <p>The output is correct (eg. True or False) when using {{form.information_request.value}} - but when I use it in an IF statement in the template - it never works.. </p>