yeah, it was a typo...
|| && | & ! ~ whatever, it confused the crap out of me also when I was writing the post and because I was in a hurry too. Its confusing when so many languages have all different syntax for the same thing and when you don't have the time to think properly (annoying loud music in the background)
I also first wrote && and || too, which wasn't correct either for the very same reasons, but I forgot to change ! to ~... oopsy
...
...but as long as the main point gets across I guess (big no-no to normal arithmetics for stuff like setting flags)
But yeah, correct is correct.... Thanks for that.