Added support for if-else chaining.