Complex sentence: After initially attempting to avoid her, Callie agrees to undergo treatment for her disorder, on the condition that John and Wanda don't get custody of her children, who are instead taken in by Patty and Harlan Pepper (Struthers and Johnston).
Split into simpler sentences: After initially attempting to avoid her, Callie agrees to undergo treatment for her disorder, on the condition that John and Wanda don't get custody of her children. The Cain children are taken in by Patty and Harlan Pepper (Struthers and Johnston).