conditioinal if

samjesse

Active Trader
Aug 30, 2011
118
0
27
Hi

can I do this, and if not, what is the way to make it short. many thx

MQL5:
              if(double k = sCh.ch[i-1].mid_line[j])

instead of

MQL5:
               double k = Class_obj.inst[i-1].mem_array[j];
               if(k)

I need to use the "k" in the code downstream.
 
Last edited by a moderator: