View Single Post
Old 05-09-2018, 01:15 PM   #2724
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
@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.
JimmXinu is offline   Reply With Quote