Operators in MQL4

 

Hi

I am reading a source code to an indicator that I'm trying to understand, where there is a strange mix of the && and || operators, i.e. it uses these operators together in one statement without clarifyint it with brackets.  I've tried to find information about which operators has higher priority, but I haven't been able to find it, so now I ask you.  The statement that I'm trying to understand something like this: 

      if (A == 1 && B > C || D == E) {

       do something

     }

Could you please clarify what happens in this example, i.e. is it ((A == 1 && B > C) || D == E) or should I read it as (A == 1 && (B > C || D == E)) ?

Thanks in advance.

Best regards

G. 

 

Thanks ubzen ... :-)

Reason: