So I have a list of elements, where each element is of the form a, if its presence is to be checked in the dataset, and of the form !a if its absence is to be checked. I'm looping over the dataset and the list. How do I construct a final logical condition and check it?
For example, if my array is [!a, b, !c], then in each instance of the dataset I need to evaluate if a not in instanace and b in instance and c not in instance. I could concatenate all these into one string but then the if statement would check for that string's existence, not the conditions themselves.
Aucun commentaire:
Enregistrer un commentaire