simple algorithm on conditionals
<p>My simple brain can't seem to put this together.</p>

<p>I want to do a check on some code to say:</p>

<pre><code>if (($limit == 0) || ($count &lt; $limit))
//do stuff
else
//exit
</code></pre>

<p>The values of limit are either 0, 1 or 4. Where 0 represents "unlimited" (don't ask).</p>

<p>So really what I want to say is </p>

<p><code>if limit == 0 or count &lt; limit (except when limit ==0)</code></p>

<p>What is the best way to structure that?</p>
