Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Passing loop counter value to variable

SET A = 0;

FOR I = 1 TO 20

     SET A = $(I) + 10;

NEXT I

My intension is to have another variable that should have a value of variable I + 10;

How can i do these here?

thanks

2 Replies
Not applicable
Author

Sorry i should use LET for variable... thanks

its_anandrjs

Hi,

Right It would be like

Set A = 0;

FOR I = 1 TO 20

     Let A = $(I) + 10;

NEXT I

Rgds

Anand