3 Replies Latest reply: Oct 6, 2014 3:56 PM by Sunny Talwar RSS

    Loop through distinct count in the Script

    Sunny Talwar

      Hi All,

       

      I am trying to use For loop using a variable which has been assigned a value using count function:

       

      Let vLoop = '=Count(DISTINCT abc)'

       

      For i = $(vLoop) to 60

                ...

      Next i

       

      I have tried with different combinations of Let and Set but none of them seems to work.

       

      Let vLoop = 'Count(DISTINCT abc)'

      Let vLoop = Count(DISTINCT abc)

      Set vLoop = '=Count(DISTINCT abc)'

      Set vLoop = 'Count(DISTINCT abc)'

      Set vLoop = Count(DISTINCT abc)

       

      Any ideas on what might I be doing wrong here.

       

      Thanks,

      S