litte bug

 
int start()
{
//----

//will got a zero divide ! It should check the first expression then return false.

int a=0;

if(a>0 && 100/a>10)

{

Alert("ok");

}
//----
return(0);
}
 

Good observation - this one was interesting.


The divide operator is the highest priority operator in your if statement, so zero divide is generated before the relational operators are even considered.


More information here:

https://docs.mql4.com/basis/operations/rules


Cheers,

Raider