the problem is with the decision hierarchy.The FIRST decision to make is whether it is "dead" or "permission denied".THEN, decide if the other criteria is met.the formula Hutch supplied should work.