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: 
sushantk19
Creator
Creator

How to implement IF logic with IN clause in tMap

How to implement IF logic with IN clause in tMap?

 

I have to check if the country names is in either of ("DE","AT","CH","FR") then E1 else NULL.

 

The below logic is giving compilation error.

row1.iso_name.equals("DE","AT","CH","FR")?"E1":null

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Try this

row1.iso_name.matches("DE|AT|CH|FR") ? "E1" : null

View solution in original post

1 Reply
Anonymous
Not applicable

Try this

row1.iso_name.matches("DE|AT|CH|FR") ? "E1" : null