Download MetaTrader 5

How to say or in mt4

To add comments, please log in or register
chris
48
chris  

Hi 

How can I say or in mql4?

 I am trying to say

   if ( AccountNumber( ) != ccc or ccc1) return(0);

 but its obviously wrong.....

 Many Thanks 

Keith Watford
Moderator
10065
Keith Watford  
 if ( AccountNumber( ) != ccc || AccountNumber( ) != ccc1)
Not sure if this is what you mean
chris
48
chris  
Thank you
Doerk Hilger
1190
Doerk Hilger  
BTW ... what shall this be good for? The condition will always be true. What you're looking for is && 
Ali Akcaagac
168
Ali Akcaagac  
I always feel amused when I see people asking questions about code protection (this seem to be one of those), when they can't even code. This question usually follows two more questions. a) how good can their to be protected code be and b) what does their to be protected code do, if they can't even code two lines of code. I usually end up advising people to learn to code first. Get their code to do what the aim of the code is and protect afterwards (if necessary). As a side note: If you don't hand out your code, then you don't need to protect it anyways.
chris
48
chris  
Doerk:
BTW ... what shall this be good for? The condition will always be true. What you're looking for is && 
Thank You
To add comments, please log in or register