"
You can use BitAnd(x, y), but your 2nd result will be 8 (1000), not 1, as a true mask result should be.
If you want to know if just the 4th bit is set (decimal 8), you can use Bit(4136, 3) and it will return a 1.
"
"
You can use BitAnd(x, y), but your 2nd result will be 8 (1000), not 1, as a true mask result should be.
If you want to know if just the 4th bit is set (decimal 8), you can use Bit(4136, 3) and it will return a 1.
"