Added a rule to match if-not/do -> when-not