in reply to Re: Boolean counter?
in thread Boolean counter?

Or if you do want the numerical value:
$counter = !$counter || 0;