Medication

Does anyone take divalproex or has taken it? Did it make you gain weight? My doctor prescribed me this but now I’m really looking into it I cannot be gaining weight I’m already overweight and I’m the process of losing some. I seen some people saying the gains like 40 lbs in a month! If that happens to me I wouldn’t be able to stand myself.