NULL comparison

 

Hi,

when assigning 0 to a variable:

int updown = NULL;
updown = 0;

this comparison:

updown != NULL

returns FALSE.

Is this a bug? 0 should not be interpreted as NULL.

 
nf43rj923:

Hi,

when assigning 0 to a variable:

this comparison:

returns FALSE.

Is this a bug? 0 should not be interpreted as NULL.

Unfortunately NULL in the MQL has multiple implementations. One of them is a substitute for zero.