Your idea works the following way - even if it doesn't look as elegant any more:

$toggle = -1 * ($toggle - 0.5) + 0.5;
Rata (loving this thread)


In reply to Re^2: Boolean counter? by Ratazong
in thread Boolean counter? by DreamT

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":