Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tHMap and if then else (or ternary operator)

Hi experts,

 

I'm working on a job that reads from a table (now I'm using a test text file) and writes an IDoc.
I have to implement an if-then-else on some fields, and I'm wondering how I must use it.
I dragged the function IfThenElse from the palette into the interested field, but how I must use it?
How can I set that the condition is fieldfrominput = 'value', then fill with an incremental number from 0000000001...?

 

This is how it is the function once dragged on the field.
IfThenElse
(x)Condition - Drop/paste here
(x)Then - Drop/paste here
(x)Else - Drop/paste here

 

Another question I want to ask you: is it possible to use ternary operator in the tHMap?
If yes, how I can set it?

 

Thanks in advance.

Best regards,

Corinne

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hello,

We have redirected your issue to our TDM experts and then come back to you as soon as we can.

Best regards

Sabrina