in reply to Re: Re: Anyone use "xor" in conditionals?
in thread Anyone use "xor" in conditionals?
I'm a bit confused by these flipflops being used, as well as the ternary thing, to alternate colours.
I long ago whittled it down to just
which flips itself.$bgcolor = ($bgcolor eq 'white'?'black':'white');
Every bit of code is either naturally related to the problem at hand, or else it's an accidental side effect of the fact that you happened to solve the problem using a digital computer.
M-J D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) 4Re: Anyone use "xor" in conditionals?
by jeffa (Bishop) on Jul 14, 2003 at 13:51 UTC | |
by Abigail-II (Bishop) on Jul 14, 2003 at 14:23 UTC |