opts = ["Risk-based questionnaires", "Use of risk management tool or software", "Conducting research"] if m1.includes("Unknown") && m2.includes("Unknown") "Unknown" else if [m1].flat().filter( (v) -> opts.includes v).length if m2 == "No" "Performs assessment but does not identify risks" else "Performs assessment and identifies risks" else if m2 == "No" "Does not perform assessment or identify risks" else "Does not perform assessment but identifies risks"