help _condition if and else occur together

I am doing a basic motor control using button
However I found that although I set the axis of joystick correctly, rest and forward will occur together when I move the joystick to the front,which lead to motor not moving

int pX_Axis = A0;
int pY_Axis = A1;
int XAxis = 0;
int YAxis = 0;

void setup() 
{
  Serial.begin(9600);
}

void loop()
{ 
  int XAxis = analogRead(pX_Axis);
  int YAxis = analogRead(pY_Axis);
  if (Something) //Forward
  {
  Serial.print("FORWARD");
  }
  else if (something); 
  {
  Serial.print("REST");
  }

else if (XAxis > 483 && XAxis < 543 && 465 < YAxis && YAxis < 525); <———<<<< get rid of the ;

I think larryd meant for you to just delete the semicolon from that line.

Yes

Get rid of the ‘semi colon’ ;

if( a=b )
{
}
else if( c=d )
{
}
When a=2 and b=2 the if() will validate.
The ‘else if’ will be ignored.

if( e=d )
{
}
else
{
}
when e=4 and d=5 the ‘else’ code is executed.