
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I found the solution I needed.
See below.
Thanks for the help guys!
Your ideas helped me reach the conclusion!
Good night.
I have the following demand, where I need help.
I have several boolean variables, which I would like to summarize to an int variable in an easier way than the example below, after all there are dozens of variables.
For example:
Being that it would be the equivalent of all the possible possibilities, as in the following table.
Thank you in advance for your help!
My suggestion would be to use multiple case statements, but because of repeating values (4, 5, 6, 7) a single switch would not work, but you can split them to handle each condition:
Here is an example, untested.
But as a starting point, this might be a solution to your problem.
How to use:
At least thats how it sould work, as said its untested.