No.
- Shortened conditions check is now used in logical operations, unlike the old MQL4 version where all expressions have been calculated and the check has been performed afterwards. Suppose there is a check of two conditions with the use of logical AND
if(condition1 && condition2) { // some block of operations }
If condition1 expression is false, calculation of condition2 expression is not performed, as false && true result is still equal to false.
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
While using "or" for say 5 statements, if the first or second return true will MQL4 still check all 5?
Thank you.