Simplify placing the ending tag of 'if/else/else if'