Changed if template syntax, added not, equals, and not equals.