What are you trying to do? What's the purpose of setting BOSS01=2 then checking if it's 10, then checking if it's 1? There's no way it can be anything other than 2.