I didn't read the whole code so probably I'm missing something, if that's the case sorry :sweat_smile: . 

What are the possible values of QC_conc then? Actually I don't think it minds, if QC_sat is either "PASSED" or "FAILED", what you're doing is comparing strings, not boolean values, right?