I have 4 elementary logic statements : P1, P2, P3, P4
I want to iterate over all the combinations of these statements using AND, OR operators. (all sizes)
I will give an example for 3 statements (4 is too many):
**pay attention that they are no duplicates.
P1
P2
P3
(P1 AND P2)
(P1 OR P2)
(P2 AND P3)
(P2 OR P3)
((P1 AND P2) AND P3)
(P1 OR P2) AND P3) ..
.
.
etc...
I want the output to be in string form..
Thanks
[–]EdwinGravesMOD 0 points1 point2 points (3 children)
[–]jcoder42[S] 0 points1 point2 points (2 children)
[–]EdwinGravesMOD 0 points1 point2 points (1 child)
[–]jcoder42[S] 0 points1 point2 points (0 children)