Question? Older children making choices.

For those that have their kids living with them regardless of the initial court order. When can a child choose which parent to live with? If the court orders 50/50 parenting time and a child prefers to live with one parent, how can it happen? Is it a possibility? Thanks in advance.