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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

not condition in tmap

Hi
I'm using enterprise version
Using tmap for setting up two outputs with different conditions.
When I use row1.country =="OP" in first output and  row1.country !="OP" in second output
All records comes out in second output  when data comes from input source with value "PO" --Correct
All records comes out in second output also when data comes from input source with value "OP" ---Why ?
--------------------
When I use !row1.countryOfRegistration.equals("OP") in first output and  row1.countryOfRegistration.equals("OP") in second output
All works fine
Is there any difference between them while using...or am missing something  ?
Thanks!!
0683p000009MFUs.png

Labels (2)
1 Reply
Anonymous
Not applicable
Author

The usage of the == operator for String does not work. == means EXACTLY the same object and not the same content.
Use as expression:

"OP".equals(row1.country)

or 

"OP".equals(row1.country) == false