I have a variable like this: ignore = val1,val2
But it’s unclear for me how to use these values as separate ones.
Currently (with my knowledge) i need to hard code them like code below:
if (not Path.find("val1") > -1 ) and (not Path.find("val2") > -1 ):
etc
Now i want test added to it, and again i need to hard code it like this:
if (not Path.find("val1") > -1 ) and (not Path.find("val2") > -1 ) and (not Path.find("test") > -1 ):
Isn’t there a better way of doing this?
If
ignoreis a tuple of value names:This has the advantage to stop as soon as the first condition is false. Just like your hard-coded example.