Adding else if snippet