the else if should be on the same line as the closing }