This seems to me like it should be obvious, but I haven't been able to find out how to do it.
In languages such as VB, VC++, Javascript, it is possible to do "bitwise comparison" on two numbers using AND, OR, etc. For example, 10 AND 2 would equal 2, since:
10 = binary 1010
2 =...