if conditions evaluation - page 2

 
samjesse:

This worked fine however I don't know why it is working now but did not later, I only removed the Print statemet.

This could be the result of an optimising pass where the if is decomposed into two statements because of the empty body. You could wrap it all up into a mini code snippet to demonstrate the behavior and report it in the Bugs thread (maybe here?) https://www.mql5.com/en/forum/167049

MT5, mql5 bugs to be fixed.
MT5, mql5 bugs to be fixed.
  • 2017.01.17
  • www.mql5.com
As suggested by James Cater, I am opening this thread to centralize bugs reported on MT5 and mql5...
Reason: