Download MetaTrader 5
To add comments, please log in or register
Any problems with the code? Find solution in documentation!
chris
48
chris 2015.12.11 11:09 

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
7979
Keith Watford 2015.12.11 11:16  
 if ( AccountNumber( ) != ccc || AccountNumber( ) != ccc1)
Not sure if this is what you mean
chris
48
chris 2015.12.11 16:23  
Thank you
Doerk Hilger
1073
Doerk Hilger 2015.12.12 23:06  
BTW ... what shall this be good for? The condition will always be true. What you're looking for is && 
Ali Akcaagac
169
Ali Akcaagac 2015.12.13 10:46  
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 2015.12.14 17:54  
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