4 Replies Latest reply on Nov 30, 2014 2:41 PM by FredH

    Reset Counter Variable in Looped Loop

    FredH

      Title

      Reset Counter Variable in Looped Loop

      Post

      Hi Experts,

      I have a "looped loop" in which I have defined a "count variable" but when my loop starts over, my count starts where it stopped at my previous loop.  How can I reset my value at the beginning of each loop?

      Ex:
      Loop
      Loop
      Set Variable ($K; $K + 1)
      ...
      End Loop
      Loop

      If for my first loop, $K arrives at 5, when my loop starts again, $K is still at 5 whereas I would need to have it start over @ 0.

      Any idea how this could be achieved?

      TIA!
      Kind regards,

      _Fred_