there is some problem in using nested FOR loop because when I create a nested for loop and run the preview it seems to work fine but when I again test the program it gives the error "A Preview is already running" even though i have closed the preview. I opened the task manager and found that the temp.exe was still running, I end the process and again previewed the layout and it ran without any problems, but again when I close the preview, the temp.exe is still running. This problem seems to only occur when I use nested FOR loop.
here is the .cap of what I trying to do
This is the first time I am trying to use loops so there are chances that I may be doing some dumb mistakes