Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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