Complex sentence: The valve is controlled by an electric current through a solenoid: in the case of a two-port valve the flow is switched on or off; in the case of a three-port valve, the outflow is switched between the two outlet ports.
Split into simpler sentences: The valve is controlled by an electric current through a solenoid coil. Solenoid valves may have two or more ports: in the case of a two-port valve the flow is switched on or off; in the case of a three-port valve, the outflow is switched between the two outlet ports.