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: 
Georgy_Paul
Contributor II
Contributor II

IF ELSE STATEMENTS

Is it possible to give two executable statements in the else part. Something like in C++ we can give all the statements to be executed if false can be given inside {} ?

2 Replies
naumanshah
Contributor III
Contributor III

Yes, it can be done in the "Data load editor", something like:

 

If (a=b) then

    ...

else

    ...

end if

Anil_Babu_Samineni

In C++ we can call arrays like {Name1, Name2, …} Where as in Qlik we call it as 

If(Match(FieldName, 'Name1', 'Name2', …), FieldName) as FiledName1

Or

If(WildMatchMatch(FieldName, 'Name1', 'Name2', …), FieldName) as FiledName1

Note: Find out the diff. of Match & WildMatch

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful