Hi James,
Thanks for your response. Unfortunately, changing the code did not change the result (updated code included).
The statement to get the “num” variable works as expected (btw, (10/5 % 1) will be 0 as the remainder of (10 divided by 5) divided by 1 is 0). The problem seems to be with the conditional statements. And the error doesn’t appear until the sixth layer in the comp upwards.
Thanks,
Jack
num=(index/5 % 1);
t = 0;
if (num==.2) {
t=-60
};
if (num==.4) {
t=60
};
if (num==.6){
t=-120
};
if (num==.8){
t=120
};
t