Download MetaTrader 5

What is the difference of '| |' and '&&' in coding?

To add comments, please log in or register
Chang Suk Chung
573
Chang Suk Chung  

Are they same or different?  

Please let me know. 

Marco vd Heijden
Moderator
5196
Marco vd Heijden  

https://www.mql5.com/en/docs/basis/operations/rules

&&

Logical AND operation

From left to right

||

Logical OR operation

From left to right

Documentation on MQL5: Language Basics / Operations and Expressions / Precedence Rules
Documentation on MQL5: Language Basics / Operations and Expressions / Precedence Rules
  • www.mql5.com
Language Basics / Operations and Expressions / Precedence Rules - Reference on algorithmic/automated trading language for MetaTrader 5
Alejandro Cuartas
5440
Alejandro Cuartas  
They are diferent things, && is AND operator, ||  is OR operator
Chang Suk Chung
573
Chang Suk Chung  
Alejandro Cuartas:
They are diferent things, && is AND operator, ||  is OR operator
Thank you very much. 
Chang Suk Chung
573
Chang Suk Chung  
Marco vd Heijden:

https://www.mql5.com/en/docs/basis/operations/rules

&&

Logical AND operation

From left to right

||

Logical OR operation

From left to right

Thanks. 

I will study it.  

To add comments, please log in or register