Added support for "if {} else if {} else {}" statements