$ 0 0 Is there a way to test a bit in a numeric value? E.g., x = 10 -- 0x0A b = 2 -- 0x02 if Math.BitAnd(x,b) then ... do stuff end