Quote:
Originally Posted by salesman
-1 evaluates to true, so next time you access control.visible would it return -1 or 1? If it returns 1, then his method would work, otherwise it would just keep evaluating to true (i.e. -2, -3, -4, ...)
|
He just mixed it up. If you subtract the current value from 1, you will end up with either 0 or 1; it's that simple.