One Star

Convert small int to Boolean

Hi,
Could any one help in writing the syntax for converting small int to Boolean.
Thanks,
-Teja.
3 REPLIES
Community Manager

Re: Convert small int to Boolean

Hi
Try some expression like this on tMap, eg:
row1.columnName==0?true:false
Best regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Convert small int to Boolean

How do i convert boolean to int in tmap 
Community Manager

Re: Convert small int to Boolean

Hi pDons
Try like this:
row1.columnName==true?1:0
//if true, set it to 1, otherwise it is 0.
----------------------------------------------------------
Talend | Data Agility for Modern Business