Detect if the ith bit is set - light up the truth!
To check if the ith bit is set (equals 1), use AND with a mask:
If the result is non-zero, the bit is ON. If zero, the bit is OFF.