Hello Zusammen,
I am trying to define a test variable within Teddy using a loop function. However, I am facing an issue where the value of my ‘#test-dir’ variable is being reset to zero in each iteration of the loop. I am looking for a more efficient approach to prevent this without resorting to lengthy logical functions with IF statements. I attempted using LET instead of STO, but unfortunately, it did not give me the desired result.
Below is an extract of my code:
STO#test_dir 0
.
.
loop#i 4
LET#UZ @(#NODE_tab(#i),UZ)
if (#UZ>0)
STO#test_dir #test_dir=#test_dir+1
else
STO#test_dir #test_dir=#test_dir-1
endif
endloop
Thanks in advance
ach