in reply to and vs &&

Check out Burned by precedence rules. The issue is that the and operator has lower precedence than the assignment operator. It says as much in operator precedence.