conversion of integer to bollean

Highlighted
Seven Stars

conversion of integer to bollean

team,

 

How to convert of integer to boolean.

 

integer values: 1,0, 23, etc

if col1>0 set 1 else 0.

 

target column is boolean.

 

thanks in advance

 

Thanks

shree


Accepted Solutions
Employee

Re: conversion of integer to bollean

Hi,

 

    Please use a tmap with expression (row1.col1 > 0)?true:false  where col1 is the input column name.

image.png

 

 

 

Please mark the topic as solution provided if the reply has helped you. Kudos are also welcome :-)

 

Warm Regards,

 

Nikhil Thampi


All Replies
Employee

Re: conversion of integer to bollean

Hi,

 

    Please use a tmap with expression (row1.col1 > 0)?true:false  where col1 is the input column name.

image.png

 

 

 

Please mark the topic as solution provided if the reply has helped you. Kudos are also welcome :-)

 

Warm Regards,

 

Nikhil Thampi

Seven Stars

Re: conversion of integer to bollean

Thanks @nikhilthampi,

 

Small query without if condition how to convert integer to Boolean,

 

Thanks

shree

What’s New for Talend Spring ’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

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog