Here's a contrived example:
if (a < b && c == d) createUserProfile();
if (userIsAuthenticated()) createUserProfile();
Here's a contrived example:
Instead, do this: