Download MetaTrader 5

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

To add comments, please log in or register
Your broker does not support mobile MetaTrader 5? Ask him to buy them!
Chang Suk Chung
528
Chang Suk Chung 2016.06.25 13:05 

Are they same or different?  

Please let me know. 

Marco vd Heijden
Moderator
4704
Marco vd Heijden 2016.06.25 13:43  

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
4716
Alejandro Cuartas 2016.06.25 14:48  
They are diferent things, && is AND operator, ||  is OR operator
Chang Suk Chung
528
Chang Suk Chung 2016.06.25 16:55  
Alejandro Cuartas:
They are diferent things, && is AND operator, ||  is OR operator
Thank you very much. 
Chang Suk Chung
528
Chang Suk Chung 2016.06.25 16:56  
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