Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Leverage your QlikView investment to modernize BI – see how! Join Group
Showing results for 
Search instead for 
Did you mean: 
Contributor III
Contributor III

Control flow: IF vs SWITCH

The need to solve a certain issue sparked a small philosophical debate on the existential purpose of two different control-flow constructs within QV.

To my eye, they serve the same exact purpose, so I am wondering "why having them both". Are there situations where either one is to be preferred to the other?

1 Reply
MVP & Luminary
MVP & Luminary

Re: Control flow: IF vs SWITCH

It's not Qlik specific else quite common constructs in scripts/programs. Therefore take a look here:


- Marcus