It seems to be a conditional that returns true whatever faction name or settlement you stick in it! :(

I even put "and not" and it still returned true.

Have you an example of its coding in a trigger block?