ハンマーであれば
hammādeareba

Noun
Da Copula

The "-eba" conditional form ("if/when…") of ハンマー

1. If it were a hammer; When it is a hammer

Ba Conditional