optimize sequence of &&
Merge pull request #2326 from WalterBright/andand-to-BT

optimize sequence of &&