Convert small int to Boolean

One Star

Convert small int to Boolean

Hi,
Could any one help in writing the syntax for converting small int to Boolean.
Thanks,
-Teja.
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
Highlighted
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

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

APIs for Dummies

View this on-demand webinar about APIs....

Watch Now