title: logic in object oriented
body: <p>Is there a design pattern or a good approach that could help me to model a logical condition, such as ((a > b OR c == d) AND e &lt; f). In particular, I'm interested in how I could use object programming to define parenthesis and OR/AND in a flexible way.</p>