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