Adding example with ``not`` for ``if``

I could not find an example with ``not``, so I added it here.