iienderii: The pseudo code that I saw when I read this looks like:
Code:
primary_tags = ('a', 'b', 'c')
secondary_tags = ('d', 'e', 'f')
if column_x.contains_any_of(primary_tags):
return "Primary"
else if column_x.contains_any_of(secondary_tags):
return "Secondary"
return "Other"
Does that describe what you want? It doesn't quite match what you said, but I can't think of a use for the alternatives.
If I'm right, that "contains_any_of" should be able to be done with a "list_intersection" and a "count". I can't experiment at the moment, but if no-one else has suggested a way, I'll have a look when I get home.