I have got indicator (testindicator) and function (testfunction).
testindicator
testfunction
printlog
all right, but if use this script
print log
why this function always used?
How this function get data?
testindicator
Code:
vars: var1(0), var2(0);
var1 = testfunction(1);
var2 = testfunction(var1);
print(var1, var2);
Code:
input: test(numeric);
vars: var1(test);
var1=var1+1;
Print("---", var1);
testfunction = var1;
Code:
--- 2.00
--- 3.00
2.00 3.00
--- 3.00
--- 4.00
3.00 4.00
--- 4.00
--- 5.00
4.00 5.00
Code:
vars: var1(0), var2(0);
if(false)then
begin
var1 = testfunction(1);
var2 = testfunction(var1);
end;
print(var1, var2);
Code:
0.00 0.00
--- 2.00
--- 1.00
0.00 0.00
--- 3.00
--- 2.00
0.00 0.00
--- 4.00
--- 3.00
0.00 0.00
--- 5.00
--- 4.00
0.00 0.00
How this function get data?