Re: how to say "inverse your value" (to a boolean)?
| From: | John Butler | Date: | Tue, 11 Aug 2009 19:53:54 +0000 |
| Subject: | Re: how to say "inverse your value" (to a boolean)? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296661@lists.php.net to get a copy of this message | ||
What a lot of good ideas spawned from the OP!
I am learning many things,.. while also actually working (paying bills), so I regularly have to just go with what I know well.
Anyway, I already have the forearch { loop (for other reasons it is necessary), and I only needed one color to alternate with the default white.. so I used this:
forearch { ...
$tableRowBGcolorBoolCounter = !$tableRowBGcolorBoolCounter; //-boolean on and off
(which then sticks in one CSS class or another for that <tr>.
thanks for everyone's feedback.
-John