Wire up the "N" terminal of the inner loop to "i" + X. In other words, inside the outer loop, add the "i" terminal to your constant X, and use that as "N" of the inner loop.
Steve Bird Culverson Software - Elegant software that is a pleasure to use. Culverson.com