Conditional Operation Control Between Workstations

Hello Community,

 

Is it possible to set conditions between workstations to control when the next operation can start ? 

 

For example, can we ensure that the Y workstation only starts if the WIP at the X workstation is greater than zero ? 

 

If it possible, how can I do it ?