Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

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...