When you don't have a hammer, you don't want anything to look like a nail.
Alternate version: If you don't have a hammer, you don't want anything to look like a nail.
When you don't have a hammer, you don't want anything to look like a nail.
Alternate version: If you don't have a hammer, you don't want anything to look like a nail.