cannot convert from boolean to String in tmap talend
HI team ,
I m trying to check null or not null ..getting below error
cannot convert from boolean to String . my input field is string .. though it is string its showing error message that its Boolean
Please help
regards
MOhini
You will need to show us what you have done. I suspect you are doing something like below.....
myString!=null
This will result in a boolean. Or maybe you are using a function that results in a boolean. To get round this, you need to know what you want to do if the variable is null and if it isn't. You can use an inline IF to deal with this like below....
myString!=null ? myString : "myString is null"
The above says "If myString is not null, then use the value held by myString. Otherwise use 'myString is null'"