use AND instead of == when checking input "==" will only match one exact value. "AND" will match the bits in more than one value.