velocity break loops if checkbox is checked
<p>I'm using apache velocity in a web application (just for experimentation and practice)
for example:</p>

<pre><code>&lt;input id="limited" type="checkbox"&gt; &amp;nbsp;&lt;strong&gt;Limited view&lt;/strong&gt;
</code></pre>

<p>so I need a code which would be... if the checkbox above is checked then do this:</p>

<pre><code>#foreach( $customer in $customerList )
#if( $velocityCount &gt; 5 )
    #break
#end
$customer.Name
#end
</code></pre>

<p>else then don't break it</p>

<p>is that kind of syntax possible?
and if yes then can you show me how?</p>

<p>please no rude comments, I'm just trying to learn... can anyone help?</p>