Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
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