> If hammers does not equal 1, it also works, but I get a compiler warning: “Will never be executed” on the hammerTitle = " hammer" statement.
Makes sense. If you hard-coded the number of hammers (and there's no place where hammers could possibly change), then there are no code paths that could result in that if block being executed.