Thread: Help?
View Single Post
  #11  
Old 08-26-2010, 04:51 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by salesman View Post
-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.
Reply With Quote