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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tmap expression syntax

i have tried below expression in tmap as per expectation i should get  " null " as output in tmap test editor ..but getting  "n" as output ...could you please clarify this...

 

0683p000009M2g2.png

Labels (2)
11 Replies
Anonymous
Not applicable
Author

I just want to clarify one thing .. as per ternary expression 

 

Condition ? True : False

 

Relational.ISNULL(row1.S_Name_Indexed__c) || row1.S_Name_Indexed__c.trim().equals("")?null :row1.S_Name_Indexed__c.substring(0,1).toLowerCase()

 

in my case condition is true and i should get "null" as result but why i am getting  "n" as out put

Anonymous
Not applicable
Author

Hi,

 

   It is because you are sending a string called "null". It is not equal to actual null in Java. But if you are insisting that you would like to send null as String, please try the code in previous post.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂