It's correct this counter Indicator?

N

newnes_1976

New member
Rich (BB code):
#COUNTER TRICK

def Ctriky = if trick1 =1 then 1 else 0;

rec counter_CALL;
if (Ctriky == 1) { 
counter_CALL = 1;
} else { if (counter_CALL[1] == 1)
{
counter_CALL = counter_CALL[1] + 1;
} else {

counter_CALL = 0;
}
}
Each time the "Ctriky" definition marks 1, it must be stored in "counter_CALL" the number of times "Ctriky" has marked 1, for example: if "Ctriky" has marked 5 times the number 1 then counter_CALL should show the number 5 .

I appreciate any support.

 
Last edited by a moderator:
Top