A valve (V, V1, V2) includes a housing (VG) and a
piston (VK) displaceably guided therein. A first end (VK1) of the
piston (VK) can be acted upon by a force, with the aid of which the
piston (VK) is displaceable against a spring (F) acting upon a second end (VK2) of the piston (VK). The valve (V, V1, V2) has four switching conditions, in which four ports (A, B, P, T) in the housing (VG) are selectively connectable to one another or blocked with respect to one another. In a first switching condition, none of the ports (A, B, P, T) are connected to one another. The spring (F) is configured in such that, in the absence of an application of force onto the first end (VK1), the piston (VK) is held in a position, which corresponds to the first switching condition of the valve (V, V1, V2).