please put the else on the same line as the close curly brace of the previous conditional branch:
`} else if (...`