I have a situation where im running a For I from 1 to 9 do loop. I want to be able to increment I by 1 depending on a condition check elsewhere in the program. Is this possible? It doesn't seem like it from the manual but maybe someone else may know a way or a workaround.
Now im seeing that everything dealing with I needs to be defined within the loop.
wo_TG_s21_shifted.oframe.trans.z:=wo_TG_s21.oframe.trans.z + ShiftZArray{i};
wo_TG_s21_shifted.oframe.trans.y:=wo_TG_s21.oframe.trans.y + ShiftYArray{i};
wo_TG_s21_shifted.oframe.trans.x:=wo_TG_s21.oframe.trans.x + ShiftXArray{i};
I tried to pull this code out of the loop into its own routine and calling the routine but im getting i not entire data reference error.