My simple brain can't seem to put this together.
I want to do a check on some code to say:
if (($limit == 0) || ($count < $limit))
//do stuff
else
//exit
The values of limit are either 0, 1 or 4. Where 0 represents "unlimited" (don't ask).
So really what I want to say is
if limit == 0 or count < limit (except when limit ==0)
What is the best way to structure that?