Download MetaTrader 5
To add comments, please log in or register
Your broker does not support mobile MetaTrader 5? Ask him to buy them!
Dmitry
12
Dmitry 2016.01.18 07:39 

Hi Guys,

 

I'm writing an EA and I stumbled into a problem for my if statement.

 

I have:

 

if(something) && (something2)

{

 

} 

 

However it won't let me do this, it comes up with an error for && and then if I put just one &, it comes up with errors in subsequent lines which disappear as soon as I delete the something2 qualifier. So obviously I'm not able to put two qualifiers the way I put them. Any suggestions?

honest_knave
947
honest_knave 2016.01.18 08:20  
if(something && something2)

{

 

} 

or...

if((something) && (something2))

{

 

} 
Dmitry
12
Dmitry 2016.01.18 09:11  
Got it thanks.
/
To add comments, please log in or register