ass="tag">&gt;</span></div></pre><p>The <a class="tag" href="tag_switch.html">&lt;switch&gt;</a> version is generally clearer, especially with a large number of conditions.</p>
<p>If the <code>on</code> attribute is <em>not</em> given, then the case's <code>if</code> attribute is checked. Here's the previous example, implemented without the <code>on</code> attribute:</p>
<pre class="moya-console format-xml"><a name="line1"></a><div class="line line-1"></span><span class="tag">&lt;</span><span class="tag tag