Bitwise AND and you: how to store many flags as a single value

same thing with true... !true (false) and !!true = true again.
I don't get much, but so far, he is the only person I see using ~~ 2 of them, so it's basicly almost the same
without using it, with an || or | behind it to make it correctly read the value.

the first example make sense for integer number to a number, it also makes more clear, but not something
I use anytime soon either.

thank you again for the explanation and sample of using them 🙂

Original thread: https://forums.rpgmakerweb.com/threads/bitwise-and-and-you-how-to-store-many-flags-as-a-single-value.165338/