[cs] generate "else if" without extra blocks