Arduino status of bit Is the a way to check the status of a bit in an arduino Uno?

Like how in Atmel AVR, there is bit_is_clear or bit_is_set
you can do it in a single line:

bool isSet = (var &amp; (1 &lt;&lt; bitNumber)) != 0;


1 &lt;&lt; bitNumber is a bit shift in this case it means that the 1 will be multiplied with the power of 2 

&amp; is the bitwise AND operator. The each bit of the result is 1 if and only if both the corresponding bits in the inputs is 1.