title: How can I use break and continue in Django templates?
body: <p>I want to put break and continue in my code, but it doesn't work in Django template. How can I use continue and break using Django template for loop. Here is an example:</p>
  
  <pre><code>{% for i in i_range %}
  {% for frequency in patient_meds.frequency %}
  {% ifequal frequency i %}
  &lt;td class="nopad"&gt;&lt;input type="checkbox" name="frequency-1" value="{{ i }}" checked/&gt; {{ i }} AM&lt;/td&gt;
  {{ forloop.parentloop|continue }} ////// It doesn't work
  { continue }                      ////// It also doesn't work
  {% endifequal %}
  {% endfor%}
  &lt;td class="nopad"&gt;&lt;input type="checkbox" name="frequency-1" value="{{ i }}"/&gt; {{ i }} AM&lt;/td&gt;
  {% endfor %}
  </code></pre>