take a look at this code.
Code: Select all
variables:
abar(0);
value1 = 0;
if abar<> currentbar then begin
// why every time abar changes back to the previous value?
print("1 ", abar,currentbar, value1);
abar = currentbar ;
value1 = 12;
print("2 ",abar,currentbar, value1);
end;
1 106.00 107.00 0.00
2 107.00 107.00 12.00 <- now abar = 107. !!!!!!!!
1 106.00 107.00 0.00 <--- why? still 106???
2 107.00 107.00 12.00
1 106.00 107.00 0.00 <--- why? still 106???
2 107.00 107.00 12.00
1 106.00 107.00 0.00 <--- why? still 106???
2 107.00 107.00 12.00
...
Who can help me out? or Is this bug of MC ?