Andrej Mitrovic: > Personally I like using this for a sort of on/off switch: > bool val; > // .. > val ^= 1; > > Maybe that's just stupid but I'm kind of used to it, lol. :p I use this, I think it's more explicit (but you have to state the variable name two times): val = !val; Bye, bearophile