Ok thanks for your answer Jason,
I understand the snippet , but is there another way to have both relationships (AND-OR) in different products.
For example: I have Product A with product dependencies B, C, D, E. I want to validate if any one of these (OR) is selected , customer can purchase product A. But I activated the snippet to force the AND relationship so it would apply for all the products. Can I choose in which products use AND and which ones OR relationships?