@edeniz -
When you are checking the value of rawgenre, you are looking at the entire string:
"Black Hermione Granger, Gen, I'm offended that's a tag OF COURSE he's smart, Indian Harry Potter, Lucius Malfoy is a bad person but a good father, M/M, Parselmouth Harry Potter, Plotty, Secret Relationship, Slow Build, Slytherins and Gryffindors being reluctant friends, Smart Draco Malfoy, Soulmate AU, but this fic isn't out to hurt you, canon? i don't know her, sometimes bad things happen, suprising lack of focus on soulmates for a soulmate au"
The only way ^Slytherins and Gryffindors being reluctant friends$ should have worked in past is if that was the only thing in Additional Tags at the time.
The substitution clause (before &&) operates on each element of the list. The conditional clause (after the &&) operates on the entire string. That may be the cause of confusion.
|