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

Difference between If and When

Hi,

I just recently stumbled upon the When statement, can anyone explain me what the difference is to the if statement?

Greetings,

Lucas

3 Replies
alexandros17
Partner - Champion III
Partner - Champion III

It's the same, when is more compact than if and allows you to execute some instructions like "exit script" and others

Not applicable
Author

Okay, thanks for the fast replay!

Greetings,

Lucas

sudeepkm
Specialist III
Specialist III

I think "If" is more flexible as you can use it in UI in your chart expressions or Text objects where as "When" is used in the Script only.