I have 2 variables A and B.(adsbygoogle = window.adsbygoogle || []).push({});

A can be computed from B like this

Now I would like to compute B from the above codeCode (Text):Input: BOOL b, OBJECT B

A=(B<<5)

if NOT b then

A=[A OR 0xFF]

It can be eitherCode (Text):Input: BOOL b, OBJECT A

orCode (Text):B=A>>5

if NOT b then

B= ?

I am not sure which way as well as the correct inverse OR operator it is that I'm seeking, I'm so confused..Code (Text):

if NOT b then

B=?

B=A>>5

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Find value from OR operator

**Physics Forums | Science Articles, Homework Help, Discussion**