Replaces an if statement with another if statement using an inverted condition inside.

The intention may be useful to simplify complex code that uses multiple nested if statements.