
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
Refer to the documentation Priorities and order of operations:
Each group of operations in the table has the same priority. The higher the priority of a group of operations, the higher it is placed in the table. The order of execution determines the grouping of operations and operands.
Parentheses are used to change the operation's execution order, and have the highest priority.
Attention: The priority of operations in MQL4 differs slightly from that in C.
So it's true
LOL
Compile in C from run if you are too lazy to check.
The compiler is a hundred percent GLUCK.
OH, THE SKIES!
AND THE GLITCH IS IN THE C, AND WE THOUGHT.... WHY THERE'S A CRISIS ON THE PLANET.
You live and learn. I have always believed that you execute AND first, and then OR. And with this understanding, all the programs worked well. Even very complicated logic combinations.
But here...
No, you'd better not read the forums. They confuse everything.
Programs worked fine.... now they're gonna be glitchy... :))))))))
Not at all ! The "or"(||) takes precedence here - unequivocally !
If there are no parentheses, then || will be executed first, and then &&
This is why brackets must be in appropriate places.
However...
tinchecked the first post in matcad. The answer is 1 0 1 1
Here is the code
To be honest, I've never memorised the priority of logical and bitwise operations. Due to innate laziness I just put brackets in the right places.
"There is much, friend Horace...."