enforce coding convention

replaced every `and` by `&&` and every `or` by `||`