From your example it is not clear exactly what you want to do. In Boolean logic there are some equivalences, for example "A AND (B OR C)" can be written as "(A AND B) OR (A AND C)", etc. If this kind of transformation is what you want to do, then study the rules of Boolean logic.
You got my requirement Jesper,
I want to expend my equation but problematically.
Only problem is i am not able to write logic for that.
I am considering expression tree right now but so far no success !
SCJP, SCWCD, SOA
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop