Right click the terminal before the broken wire. Select Tunnel Mode>Indexing.
Note that with for loops, the default tunnel mode is Indexing. For while loops it's last value. but by right clicking you can convert both terminals to how you want it to be. The tunnel mode for while loops is not indexing, because the loop could run endlessly, and the array will grow and grow until memory is full. So it's a less obvious thing to do for while loops (but OK if you know what you're doing).
Also insert a "To Double" function, either before the terminal (inside the loop), or after the terminal (outside the loop).