Auditing with conditional expressions