部屋 へやであれば
oheyadeareba

Noun
Da Copula

The "-eba" conditional form ("if/when…") of 汚部屋

1. If the room is messy; If the room were messy

Ba Conditional