STATE VALUE

Modifies state to on or off if the corresponding bit is set on in STATE MASK.