Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Problem in Do..While...Loop

Dear Team,

i am using do while loop but its not working properly, condition is false then also its working.

please find attached image for same.

dowhile.png

Labels (1)
1 Solution

Accepted Solutions
pokassov
Specialist
Specialist

Hello!

Do while i<MonthDiff

and....

let i=i+1;

View solution in original post

2 Replies
pokassov
Specialist
Specialist

Hello!

Do while i<MonthDiff

and....

let i=i+1;

petter
Partner - Champion III
Partner - Champion III

The $-sign expansion is only done once for the script. So the logic at the DO WHILE will always be

1 < 11

Which will always be true and hence you get an infinite loop...