Editor IF rewrite