support 'else if' and 'else' tag