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: 
rohit1804
Contributor III
Contributor III

how to use compareTo in tmap.

Hi,

Can anyone please tell me how to use compareto operator in tmap.

please give the proper example.

 

 

thanks,

Rohit.

Labels (1)
3 Replies
manodwhb
Champion II
Champion II

@rohit1804 ,

 

You  need to compare the below way for sting type. what is your use case.

 

row1.column==null ? "xyz": row1.column

 

row1.column.equals("ABC") ? "xyz": row1.column

 

("ABC") .equals(row1.column)? "xyz": row1.column

rohit1804
Contributor III
Contributor III
Author

in my case field is of bigdecimal data type