Use a variable in a global variable


#1

1) Give a description of the problem
I’m trying to simplify an insanely complex piston. The circled section is my attempt to turn four separate device sections into one that uses a loop. For the life of me, I can’t figure out how to use a variable for a global variable.

2) What is the expected behaviour?
The piston should pull data from a global variable and place it into another variable. The global variable uses a variable so I can run it for all four devices.

Did I say “variable” enough times?

3) What is happening/not happening?
No iteration I’ve tried has successfully worked. I’m sure what you’ll see on the piston is wildly wrong, and I know it. I’ve just trying everything I know.

**4) Post a Green Snapshot of the piston!

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)