I suck at math. I do not understand the uses for bit-wise jumbotronics.
Printable View
I suck at math. I do not understand the uses for bit-wise jumbotronics.
[]I suck at math. I do not understand the uses for bit-wise jumbotronics. [/]
You can use it to for example split a global value into different flags using the bits that it consists of.
would set the bit to 1, ie enable the flag.Code:-Global Value A = Global Value A OR 2 pow Flag
And this disables a flag
Code:-Global Value A = Global Value A XOR 2 pow Flag
will return true if the bit is set, ie the flag is enabled.Code:+Global Value A OR 2 pow Flag == 1
Flag is the number of the flag you want to use.
It may seem too complicated to use in MMF and it probably is, but it's an application <img src="/center/images/graemlins/wink.gif" alt="" />
I am sure I am going to show my, well you know what, but here it goes. Turboferret, your statements here are very interesting and you have already reminded me of mod so please take this as intened, to point out just how stupid a programmer (me) can be! hehe
Can't you get the same thing just by using the "is flag on" condition?
thanks,
Yeah you could do that if you want to use an object. There are no global flags though <img src="/center/images/graemlins/smile.gif" alt="" />