trouble with ELSE statement in servo project

I am building a pan and tilt camera mount controlled with an Xbox controller.
I am using these two libraries:
XBOXRECV.h // XboX library
VarSpeedServo.h // Variable servo speed library

Okay here is the code snippet:

//if(Xbox.getAnalogHat(i,LeftHatX) > 31500 || Xbox.getAnalogHat(i,LeftHatX) < -31500 || Xbox.getAnalogHat(i,LeftHatY) > 7500 || Xbox.getAnalogHat(i,LeftHatY) < -7500 || Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500 || Xbox.getAnalogHat(i,RightHatY) > 7500 || Xbox.getAnalogHat(i,RightHatY) < -7500) 
        {
          if(Xbox.getAnalogHat(i,LeftHatX) > 7500 || Xbox.getAnalogHat(i,LeftHatX) < -7500) {
            servo1.slowmove(map(Xbox.getAnalogHat(i,LeftHatX), 0, 1024, 0, 179),60);
          
            Serial.print(F("LeftHatX: ")); 
            Serial.print(Xbox.getAnalogHat(i,LeftHatX));
            Serial.print("\t");
          }
         else  /////////////////////////HERE
         {
           servo1.slowmove(90,90);
    
          }
      
         if(Xbox.getAnalogHat(i,LeftHatY) > 7500 || Xbox.getAnalogHat(i,LeftHatY) < -7500)
         {
            servo2.slowmove(map(Xbox.getAnalogHat(i,LeftHatY), 0,1024 , 179, 0),60);
            Serial.print(F("LeftHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,LeftHatY));
            Serial.print("\t");
          }
          else  //////////////////////////////////////////////////// HERE
          {
           servo2.slowmove(90,90);
    
           }  
   
             if(Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500) {
            Serial.print(F("RightHatX: ")); 
            Serial.print(Xbox.getAnalogHat(i,RightHatX));
            Serial.print("\t");      
          } 
          if(Xbox.getAnalogHat(i,RightHatY) > 7500 || Xbox.getAnalogHat(i,RightHatY) < -7500) {
            Serial.print(F("RightHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,RightHatY));  
          }
          Serial.println();
          
        }
        ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        if(Xbox.getButtonClick(i,UP)) {
          servo1.slowmove(90,100);
          servo2.slowmove(135,100);
          Xbox.setLedOn(i,LED1);
          Serial.println(F("Up"));
        }
  
        if(Xbox.getButtonClick(i,DOWN)) {
          servo1.slowmove(90,100);
          servo2.slowmove(90,100);
          Xbox.setLedOn(i,LED4);
          Serial.println(F("Down"));
          Serial.println(F("Starting Position"));
        }
        if(Xbox.getButtonClick(i,LEFT)) {
          servo1.slowmove(45,100);
          servo2.slowmove(90,100);
          Xbox.setLedOn(i,LED3);
          Serial.println(F("Left"));
        }
        if(Xbox.getButtonClick(i,RIGHT)) {
         // servo1.slowmove(135,100);
          //servo2.slowmove(90,100);
          Xbox.setLedOn(i,LED2);
          Serial.println(F("Right"));
        }

If I use the else statement the servos will return to the “Home” position but none of the other buttons on the controller will function after the else statement
If I omit the else statement the servos stay in an arbitrary positions but the button functions work

looking for a nudge in the right direction
I can post the whole code if you need it.

If I use the else statement the servos will return to the "Home" position but none of the other buttons on the controller will function after the else statement

That would seem to implicate the slowmove function in the problem somehow, although you obviously use it elsewhere. Seeing your whole code may help so please post it. Does the problem only affect servo1 ?

You are missing a closing brace from the second if statement.

In the IDE put the cursor just after the opening brace and the closing brace will be outlined.

Okay here is the whole code:

    XBOX CONTROLLER CONNECTIVITY WTH USB SHIELD
  This Started off as an Example sketch for the Xbox Wireless Reciver library - developed by Kristian Lauszus
 For more information about Xbox controller connectivity  to the USB host shield see the blog post:
 http://blog.tkjelectronics.dk/2012/12/xbox-360-receiver-added-to-the-usb-host-library/ or  send him an e-mail:
 kristianl@tkjelectronics.com

This has been modified by me Tim Bates(timcki)
 It supports up to four controllers wirelessly using the microsoft PC Dongle (I only use one)
 Since this will be used to move a pan and tilt camera mount, I have used the VarSpeedServo.h library to
 controll the servo speed so you dont vomit while watching the video
 */

#include <XBOXRECV.h>                // XboX library    
#include <VarSpeedServo.h>           // servo Speed library
USB Usb;                        
XBOXRECV Xbox(&Usb);                 // Create instances of type Servo. servo1 is the steering servo and servo2 is the ESC.
VarSpeedServo servo1;                // Create physical servo 1   
VarSpeedServo servo2;                // Create physical servo 2

//**************************************************************************************************************************
void setup(){ 
  pinMode(3, OUTPUT);                // Assign pin 3 as an output
  pinMode(5, OUTPUT);                // Assign pin 5 as an output    
  servo1.attach(5,555,1555);         // signal to servo on digital pin 5
  servo2.attach(3,555,1555);         // signal to servo2 on digital pin 3
  servo1.slowmove(90,100);           // tells servo1 where to go at startup and how fast to get there 
  servo2.slowmove(90,100);           // tells servo2 where to go at startup and how fast to get there
  {
    
    Serial.begin(115200);            // Starts the serial communication   
    
    if (Usb.Init() == -1) {          // Starts the Xbox receiver library
      Serial.print(F("\r\nOSC did not start"));
      while(1); //halt
    }
    Serial.print(F("\r\nXbox Wireless Receiver Library Started"));
  }
}
//***************************************************************************************************************************

void loop() {
  Usb.Task();

  if(Xbox.XboxReceiverConnected) {
    for(uint8_t i=0;i<4;i++)

    {
      if(Xbox.Xbox360Connected[i]) {
        if(Xbox.getButtonPress(i,L2) || Xbox.getButtonPress(i,R2)) {
          Serial.print("L2: ");
          Serial.print(Xbox.getButtonPress(i,L2));
          Serial.print("\tR2: ");
          Serial.println(Xbox.getButtonPress(i,R2));
          Xbox.setRumbleOn(i,Xbox.getButtonPress(i,L2),Xbox.getButtonPress(i,R2));
        }
       if(Xbox.getAnalogHat(i,LeftHatX) > 7500 || Xbox.getAnalogHat(i,LeftHatX) < -7500 || Xbox.getAnalogHat(i,LeftHatY) > 7500 || Xbox.getAnalogHat(i,LeftHatY) < -7500 || Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500 || Xbox.getAnalogHat(i,RightHatY) > 7500 || Xbox.getAnalogHat(i,RightHatY) < -7500) 
       {

          /////////////////////////////////////////////////////////////////////////////////////////////////////////
          if(Xbox.getAnalogHat(i,LeftHatX) > 7500 || Xbox.getAnalogHat(i,LeftHatX) < -7500) {
            servo1.slowmove(map(Xbox.getAnalogHat(i,LeftHatX), 0, 1024, 0, 180),60);
            // servo1.slowmove(90,100);
            Serial.print(F("LeftHatX: ")); 
            Serial.print(Xbox.getAnalogHat(i,LeftHatX));
            Serial.print("\t");
          } 
          else
          { 
           servo1.write(90);
          }
          if(Xbox.getAnalogHat(i,LeftHatY) > 7500 || Xbox.getAnalogHat(i,LeftHatY) < -7500) {
            servo2.slowmove(map(Xbox.getAnalogHat(i,LeftHatY), 0, 1024, 180, 0),60);
            Serial.print(F("LeftHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,LeftHatY));
            Serial.print("\t");
          }
         else
        {
         servo2.write(90);
        } 
          if(Xbox.getAnalogHat(i,RightHatX) > 7500 || Xbox.getAnalogHat(i,RightHatX) < -7500) {
            Serial.print(F("RightHatX: ")); 
            Serial.print(Xbox.getAnalogHat(i,RightHatX));
            Serial.print("\t");      
          } 
          if(Xbox.getAnalogHat(i,RightHatY) > 7500 || Xbox.getAnalogHat(i,RightHatY) < -7500) {
            Serial.print(F("RightHatY: ")); 
            Serial.print(Xbox.getAnalogHat(i,RightHatY));  
          }
          Serial.println();
          
          //servo1.write(90);
          //servo2.write(90);
        
       }
        ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        if(Xbox.getButtonClick(i,UP)) {
          servo1.slowmove(90,100);
          servo2.slowmove(135,100);
          Xbox.setLedOn(i,LED1);
          Serial.println(F("Up"));
        }      
        if(Xbox.getButtonClick(i,DOWN)) {
          servo1.slowmove(90,100);
          servo2.slowmove(90,100);
          Xbox.setLedOn(i,LED4);
          Serial.println(F("Down"));
          Serial.println(F("Starting Position"));
        }
        if(Xbox.getButtonClick(i,LEFT)) {
          servo1.slowmove(45,100);
          servo2.slowmove(90,100);
          Xbox.setLedOn(i,LED3);
          Serial.println(F("Left"));
        }
        if(Xbox.getButtonClick(i,RIGHT)) {
          servo1.slowmove(135,100);
          servo2.slowmove(90,100);
          Xbox.setLedOn(i,LED2);
          Serial.println(F("Right"));
        }        

        if(Xbox.getButtonClick(i,START)) {
          Xbox.setLedMode(i,ALTERNATING);
          Serial.println(F("Start"));
        }
        if(Xbox.getButtonClick(i,BACK)) {
          Xbox.setLedBlink(i,ALL);
          Serial.println(F("Back"));
        }
        if(Xbox.getButtonClick(i,L3))
          Serial.println(F("L3"));
        if(Xbox.getButtonClick(i,R3))
          Serial.println(F("R3"));

        if(Xbox.getButtonClick(i,L1))
          Serial.println(F("L1"));
        if(Xbox.getButtonClick(i,R1))
          Serial.println(F("R1"));
        if(Xbox.getButtonClick(i,XBOX)) {
          Xbox.setLedMode(i,ROTATING);
          Serial.print(F("Xbox (Battery: "));
          Serial.print(Xbox.getBatteryLevel(i)); // The battery level in the range 0-3
          Serial.println(F(")"));
        }
        if(Xbox.getButtonClick(i,SYNC))
          Serial.println(F("Sync"));

        if(Xbox.getButtonClick(i,A))
          Serial.println(F("A"));
        if(Xbox.getButtonClick(i,B))
          Serial.println(F("B"));
        if(Xbox.getButtonClick(i,X))
          Serial.println(F("X"));
        if(Xbox.getButtonClick(i,Y))
          Serial.println(F("Y"));
    }
      
    }
  }  
  delay(15);
}

The goal is to have the joystick move the camera left and right, when I let go it will return to a home position.
additionally I would like a couple of buttons to go to the 45 degrees left and right.
Thanks for any help.

I thought I had a handle on this coding thing now I am lost again:(

all right seems there was an error in the min max setting for servo1.attach() and servo2.attach().... oi.