cancel
Showing results for 
Search instead for 
Did you mean: 

To take first values of queue for "TRUE"

Former Member
0 Kudos

Is it possible to take the first values of the queue for the TRUE alone in IF-Then-Else function

For "false" it should take right values. For "true", values should be taken respectively from first.

Please find the attachment for the current.

current

Input 0 Input 1 Input 2 Input Out
1falseAAAAAA
2falseBBBBBB
3trueCCC3
trueDDD3

Required

Input 0 Input 1 Input 2 Input Out
1falseAAAAAA
2falseBBBBBB
3trueCCC1
trueDDD2

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member190293
Active Contributor
0 Kudos

Hi G!

I'm not sure I understood your requirement right but you could use UDF like this:

or with less code

Mapping:

Result:

Regards, Evgeniy.

Harish
Active Contributor
0 Kudos

Hi,

AFAIK- this can not be done via standard functions in message mapping. you need to create udf for

this functionality.

regards,

Harish