Valves having multiple inlets or outlets