How to say or in mt4

Back to topics list To post a new topic, please log in or register
avatar
15
kraziekris 2015.12.11 12: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 

avatar
Moderator
3423
GumRai 2015.12.11 12:16 #
 
 if ( AccountNumber( ) != ccc || AccountNumber( ) != ccc1)
Not sure if this is what you mean
avatar
15
kraziekris 2015.12.11 17:23 #
 
Thank you
avatar
119
Doerk 2015.12.13 00:06 #
 
BTW ... what shall this be good for? The condition will always be true. What you're looking for is && 
avatar
145
aakcaagac 2015.12.13 11: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.
avatar
15
kraziekris 2015.12.14 18:54 #
 
Doerk:
BTW ... what shall this be good for? The condition will always be true. What you're looking for is && 
Thank You
Back to topics list  

To add comments, please log in or register