Download MetaTrader 5

Small problem with operator ||

To add comments, please log in or register
fly7680
673
fly7680  

Hello to everyone, i would need to use this operator || Between functions but I give you an error: 'if' - expression of 'void' type is illegal.

if( myFunction1() || myFunction2() ){
  
    myFunction3();
} 
fly7680
673
fly7680  
Ok sorry guys, I solved changing my function from void to bool
To add comments, please log in or register