I want this circuit to give \$V_{out}\$ satisfying
\$ V_{out} = \begin{cases} -\dfrac{R_f}{R_1}V_{s1}-\dfrac{R_f}{R_2}V_{s2}; \quad \text{if} \quad \left(-\dfrac{R_f}{R_1}V_{s1}-\dfrac{R_f}{R_2}V_{s2}\right) > 0 \\ 0; \quad \text{if} \quad \left(-\dfrac{R_f}{R_1}V_{s1}-\dfrac{R_f}{R_2}V_{s2}\right) \le 0 \end{cases} \$
How do I do it?
I considered adding a diode at the output like in the image below, but I'm not sure whether it will work or not, or even if it works, it is the best way of doing it or there is a better way.