Triple or other relay valves which allow step-wise application or release and which are actuated by brake-pipe pressure variation to connect brake cylinders or equivalent to compressed air or vacuum source or atmosphere