What on earth is going on? - page 10

 

Write everything on one line and everything will be fine

   filename = "ERR_dir\\"+filename+MQLInfoInteger(MQL_OPTIMIZATION) ? ".opt" : MQLInfoInteger(MQL_TESTER) ? ".tst") : "";

It reads like this: If optimisation, then .opt otherwise if tester, then .tst otherwise empty string.

The conditions are checked from left to right and if the condition is met, then the check is not continued. Accordingly, if there is no optimization, the second condition will be checked. If it is not a tester either, .tst will be used, in this case an empty string.