I have this situation that I need to let users define decisions based on the number of given conditions. For example my program needs to automatically generate a matrix as b
I think I know what you're saying. If your conditions aren't that bad, you can say:
if (A && B && C) {
return X;
}
if (!A && B && C) {
return Y;
}
Oh wait! I think you're looking to generate all the different combinations of conditions! You want permutations! And if you just have binary, well sir, each combo can be found by counting.
I don't quite follow:
Does it look like
State 1 2 3 4 Condition A T T F F
?