What should you do when you have automated scripts that contain assertions with many logical conditions?
Automated tests should not contain logic in them or many assertions, for that matter. But, if a test requires logic, be sure to check all conditions.
Consider using parentheses with logical expressions. It helps with code comprehension.