How do I alternate current on a circuit between two points?

If i wanted to take the positive lead of a DC current and split it into two different points but have it automatically switch from one to the other, what component would i need?
2 answers 2