Read PWM duty from a pin and write PWM to a pin

if (PWM_Val_OUT >=50 &&  PWM_Val_OUT <=100); <<===

PWMVal = 198;
  delay(100);
}
 analogWrite(PWM_Pin_OUT, PWMVal);

Could be something in here ?