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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
rishind
Contributor III
Contributor III

Compare boolean values

Hi,

I want to compare 2 boolean values in tmap.

Boolean values are 0 and 1.

Basically I am doing SCD,so I want to compare incoming and lookup.

I tried converting to string but it always gives false

String.valueOf(row1.in_value).equals(String.valueOf(row2.In_value))?"Same_Value":"Diff_value" 

Labels (4)
2 Replies
Anonymous
Not applicable

If your booleans are represented as single bits, why not just compare those? What are the data types of both columns before conversion?

rishind
Contributor III
Contributor III
Author

Both are boolean.

I used = ,== also but getting error.

After comparison I want to convert them to string.