The nice thing about writing the logic backwards for something is the behavior ends up exactly the opposite of what you were expecting.  That's what makes this sort of thing easy to find.
After you realize what's going on, it becomes a matter of figuring out where to place the ! .
 That's a terrible sentence.