The real name for this feature is Y-Switch.

Valves were added in the chapter: Rising Tide

Valves are a new optional part to a pipe. Valves allow you to change which pipe the fluid will go to. There are only 2 paths where valves can go to. The level Octospout is the level with the most valves.