I am trying to determine how to test whether variors bits are set within a byte (or larger flag) , the python 'and' and 'or' do not seem to be doing what i want .. does anybody have some sample code showing how to do it ??<br>
<br>e.g. (in "C") <br><br>unsigned char a = 6;<br><br>is 3rd bit set ??<br><br>a & 4 =, true in this case ....<br><br>thanks <br>Robert Somerville<br><br>