Here is excerpt from help on switch operator:
"The case keyword with a constant are just labels, and if operators are executed for some case variant, the program will further execute the operators of all subsequent variants until the break operator occurs. It allows to bind a sequence of operators with several variants."
Switch jumps to the first case that matches value and executes all subsequent orders until break or end of switch block.
Thank you for clarification.
I read that in docs, but now it sounded clearer from you.
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 have the following code:
Initially, I didn't put any break, i thought it was ok.
But now I'm confused, even after I read docs about switch command.