You're a programmer and you want to buy a car. There are several restrictions on the path of buying a car:
val mercedes = ...
val red = ...
val enoughMoney = ...
val buyCar = enoughMoney && (!mercedes || red)
So, select the desired combinations of restrictions when buyCar is true.