You can use ! - no problem. His original script was fine syntactically, it's just the logic that's wrong.