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: 
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
MVP
MVP

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