ORDER of COMPUTING

 

If I have a line of a code like:

if (function_a(xxxx) > 100 && function_b(yyy)>200)

but function_b() is uses the results of function_a().

Is the MT4 computs function_a() first, and then takes its results and put them inside function_b()?

or maybe I should computs function_a() first, and after (;) it computs function_b().

Thanks for your responses.

 
You are provoking extremely difficult to find bugs when you are writing functions that have side effects. Your code should be clear and easy to follow and should not pose such questions at all and ideally all your functions should not alter any global variables or depend on them and it should not matter in which order they are executed.

Of course this is not always possible in an imperative language but you should at least try your best to come as close as possible to this ideal and avoid such situations as good as you can by structuring code and program flow accordingly. A first step towards this goal is trying to eliminate all global variables.
Reason: