gooly:
Hi,
does anybody know whether here
a) all expr1,..expr4 are tested to be true or
b) only the first and if expr1 == false all the others were skipped as if will be false?
Additionally if the 'ANDs' (&&) were 'ORs' (||) then if the first expr1 is true the whole if must be true so the rest could be skipped.
Does anybody know how this is executed?
Thanks in advance,
Gooly
In MT4 all tests are always run.
Thank you to both!
Gooly
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
Hi,
does anybody know whether here
bool expr1,expr2,expr3,expr4; .. expr1 = High[1]>High[2]; ... if( expr1 && expr2 && expr3 && expr4 ) { ... }
a) all expr1,..expr4 are tested to be true or
b) only the first and if expr1 == false all the others were skipped as if will be false?
Additionally if the 'ANDs' (&&) were 'ORs' (||) then if the first expr1 is true the whole if must be true so the rest could be skipped.
Does anybody know how this is executed?
Thanks in advance,
Gooly