title: If else conditions in angularjs templates
body: <p>I am quite new to AngularJs. I am working on a Q&amp;A Application where i have to render some questions and its answers in the form of a table. I have three Types of questions which I have to render in a different way. Every question has a type assigned with it. If question.type is "MCQ" then the options or its answer should be rendered with HTML checkbox, and if question type is NUM its answers should be rendered with radio buttons. i tried this and use if conditions in AngularJs Template. my code is  </p>
  
  <pre><code>&lt;table&gt;
      &lt;thead&gt;
          &lt;td&gt;Questions&lt;/td&gt;
          &lt;td&gt;&lt;/td&gt;
          &lt;td&gt;Hints&lt;/td&gt;
      &lt;/thead&gt;
      &lt;tr data-ng-repeat="question in quizdata.questions"&gt;
          &lt;td ng-if="question.type==MCQ"&gt;
              &lt;li&gt;{[{question.question_text}]}&lt;/li&gt;
              &lt;ol data-ng-repeat="answer in question.answers"&gt;
                  &lt;li&gt;
                      &lt;input type="checkbox"&gt;{[{answer.answer_text}]}&lt;/input&gt; 
                  &lt;/li&gt;
              &lt;/ol&gt;
          &lt;/td&gt;
  
          &lt;td ng-if="question.type==FIB"&gt;
              &lt;ol data-ng-repeat="answer in question.answers"&gt;
                  &lt;li&gt;
                      &lt;input type="text"&gt; &lt;/input&gt;
                  &lt;/li&gt;
              &lt;/ol&gt;
          &lt;/td&gt;
  
          &lt;td ng-if="question.type==NUM"&gt;
              &lt;ol data-ng-repeat="answer in question.answers"&gt;
                  &lt;li&gt;
                      &lt;input type="radio"&gt;{[{answer.text}]}&lt;/input&gt;
                  &lt;/li&gt;
              &lt;/ol&gt;
          &lt;/td&gt;
  
          &lt;td&gt;&lt;/td&gt;
  
          &lt;td ng-if="quizdata.attempt_hint"&gt;
              {[{question.hint}]}
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I tried it like this. But I think if conditions are not executing. Because it is rendering all the elements in each case if the condition is false or true. Am I using the if conditions in right way? Is there any else condition in AngularJs Templates? Help will be highly appreciated.</p>