I would like to test all probable combinations of 7 separate bool conditions. How do I do this? My initial inclination is to list all probable combinations like statements.
7 t/f conditions = 2x2x2x2x2x2x2 = 128 combinations.
For example:
F F F F F F F = 1
T T T T T T 1 = two
T F F F F F F = 3
T F F F F F F = 4
T T F F F F F = 5
etc.....
etc.. .
etc..
1. I'd like to print a list in MT4 outputting ALL permutations so that I can see and compare.
2. Ideally, I'd like to test all combinations with each mix as one integer 1 through 128 without having to create 128 separate if statements, however I'd still enjoy the list so I can manually compare the output and outcomes of each permutation.
How do I do both and/or possibly above?