title: Conditional statement in GAE Go template package
body: <p>How is it possible to perform a conditional statement in html template in GAE GO? I was trying to accomplish this to make an option selected in a select html tag:</p>
  
  <pre><code>&lt;select name=".Grade"&gt;
            &lt;option value=""&gt;&lt;/option&gt;
            &lt;option value="1" {{ if .Grade="1" }} selected="selected" {{ end }}&gt;Grade One&lt;/option&gt;
            &lt;option value="2" {{ if .Grade="2" }} selected="selected" {{ end }}&gt;Grade Two&lt;/option&gt;
            &lt;option value="3" {{ if .Grade="3" }} selected="selected" {{ end }}&gt;Grade Three&lt;/option&gt;
            &lt;option value="4" {{ if .Grade="4" }} selected="selected" {{ end }}&gt;Grade Four&lt;/option&gt;
            &lt;option value="5" {{ if .Grade="5" }} selected="selected" {{ end }}&gt;Grade Five&lt;/option&gt;
            &lt;option value="6" {{ if .Grade="6" }} selected="selected" {{ end }}&gt;Grade Six&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>There is</p>
  
  <pre><code>{{ if .Grade }} selected="selected" {{ end }} 
  </code></pre>
  
  <p>in the reference doc but this only evaluates to true if <code>.Grade</code> has value. Any help would be highly appreciated. Thanks!</p>