Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
x(str) y(str) z(str) Output (str) RequiredOutput
null 1 null null1null 1
1 2 3 123 6
Query used:
row1.x==null && row1.y==null && row1.z==null ? 0:row1.x+row1.y+row1.z
Someone help to get the required output ??
Thanks in Advance.
Prabuj
Start with this:
As soon as input fields are strings, the + operator is for concatenation, not for addition.
If the expression is used in a tMap component, you should use local variables to simplify it (1 local for each input field to convert from string to int and deal with null values).
Start with this: