Fix logical operators (use && instead of 'and')